Don't ask to ask, just ask | |
PerlMonks |
Re^2: [SHELL] Detect backslash in command line argsby syphilis (Archbishop) |
on Jul 08, 2013 at 23:48 UTC ( [id://1043207]=note: print w/replies, xml ) | Need Help?? |
perl -e 'die "error: @ARGV[0]" if @ARGV[0] =~ /\\/' foo\\bar That works, but passing 'foo\\bar' is not an error. The error I want to catch is when I pass 'foo\bar'. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|