On 12/9/09 Wed Dec 9, 2009 6:01 PM, "Tony Esposito" <tony1234567...@yahoo.co.uk> scribbled:
> I need to pass an command-line arg that is a string which contains the '@'. > Is there any way to do this and also 'tell' Perl not to interpret this as > other than a '@' character? The '@' character is only special in Perl source code statements. Command-line arguments are data. Your shell will put the command-line argument containing a '@' character into one of the elements of the @ARGV array. You can use that value as it is: % perl -e 'print qq(@ARGV\n);' a...@a b...@b c...@c a...@a b...@b c...@c -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/