Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: [SHELL] Detect backslash in command line args

by syphilis (Chancellor)
on Jul 08, 2013 at 23:48 UTC ( #1043207=note: print w/replies, xml ) Need Help??


in reply to Re: [SHELL] Detect backslash in command line args
in thread [SHELL] Detect backslash in command line args

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
  • Comment on Re^2: [SHELL] Detect backslash in command line args

Replies are listed 'Best First'.
Re^3: [SHELL] Detect backslash in command line args
by Laurent_R (Abbot) on Jul 09, 2013 at 06:17 UTC

    Then it is a shell issue, not a Perl issue.

      Then it is a shell issue, not a Perl issue.

      And the OP wants to detect/handle it from-a perl program, makes it Perl issue, cause perl like interacts with shells

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1043207]
help
Chatterbox?
[choroba]: I configured signature font to 2pt size, so I don't care
[choroba]: Moreover, I don't find the Big Lebowski quote offensive
Lady_Aleena wishes she could format her signature a bit without getting metaphorical hives.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2017-06-23 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (539 votes). Check out past polls.