#!/usr/bin/perl -wuse strict;my $passwd = "A:B:C:D::/value1/value2:/value3";my @fields = split /:/, $passwd;my $passwd2 = join "#", @fields;print "Original password : $passwd\n";print "New password : $passwd2\n";