Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: shift @ARGV not working

by Anonymous Monk
on May 09, 2013 at 19:15 UTC ( [id://1032822]=note: print w/replies, xml ) Need Help??


in reply to Re: shift @ARGV not working
in thread shift @ARGV not working

Howdy blue_cowdawg,
How could you miss that? The issue he was having is variable scope issue. How does the OP think he would be able to print the variable, when it was scoped to the if block?
Moreover, if the OP has used strict and warnings, he would have seen the red gauge
I think you need a break from the keyboard. You are working to hard...

Replies are listed 'Best First'.
Re^3: shift @ARGV not working
by Anonymous Monk on Apr 04, 2024 at 13:13 UTC
    Also, the OP did "shift before setting $argument", because the assignment is processed from right to left.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1032822]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-19 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found