Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: ARGV array getting shifted

by ides (Deacon)
on May 07, 2007 at 16:44 UTC ( #613977=note: print w/replies, xml ) Need Help??

in reply to ARGV array getting shifted

You'll need to provide some short code examples for us to be much help. That being said, typically the first argument to a method is the instance object itself ( aka $self or this ) . Is that maybe tripping you up?

For example, if you build an OO module, but call it as a function and not an object method you may well be shifting off your first argument to the method in your own code.

Also, @ARGV is only used for getting commandline arguments, not when pulling in arguments to functions or method calls.

Frank Wiles <>

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://613977]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2017-11-22 13:35 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (323 votes). Check out past polls.