in reply to Substring for command line entry
Do you want to repeat every two characters? Then you could just do:
If you want to do something else, please be more specific.die "No parameters given\n" unless @ARGV; $ARGV [0] =~ s/(..)/$1$1/g; print $ARGV [0], "\n";
Abigail
|
|---|