- or download this
sub encode {
my $encode = shift;
...
$enc = encode ($str);
$dec = decode ($enc);
print "$enc\n$dec";
- or download this
#!/usr/bin/perl -w
...
HTML
__END__
- or download this
# encode all the '#' chars before we join
s/#/%35/g for values % details;
...
my @values = split "#", <FILE>;
# now unencode any encoded '#' chars in @values
s/%35/#/g for @values;