Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Getting Sparse - Taming Multivalued Options in Getopt::Long

by Abigail-II (Bishop)
on Jun 07, 2004 at 08:58 UTC ( [id://361911]=note: print w/replies, xml ) Need Help??


in reply to Re: Getting Sparse - Taming Multivalued Options in Getopt::Long
in thread Getting Sparse - Taming Multivalued Options in Getopt::Long

my (@foos, @bars, @bazen, @quuxi); sub setter { no strict refs; push @{shift}, split /,/, @_; }
What's the point of the my? If you are using symbolic references, you will work with package variables, not lexical variables (well, that's assuming you use @{+shift}, otherwise you'll be pushing on @shift).

Abigail

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-24 02:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found