With MS Windows's cmd.exe shell we can force an exception if any args passed via the command line contain a backslash:
die "Backslash" if $_ =~ /\\/;
But in the (bash ?) shells that I use on Cygwin and Linux, that works only if the args were placed inside double quotes - ie:
perl script.pl "arg\one"
At least, that's the only way *I* could get the regex to catch the backslash.
So ... if someone does perl script.pl arg\one
in one of these shells, is there any way that script.pl can detect the backslash contained in that command line argument ?