Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Basic Perl passing a temp array

by Enlil (Parson)
on Nov 11, 2004 at 00:12 UTC ( #406854=note: print w/ replies, xml ) Need Help??


in reply to Basic Perl passing a temp array

change this line:

addHost('aklia700',qw(carrot lunch));
to
addHost('aklia700',[qw(carrot lunch)]);
have a look at perldoc perlref (what you are wanting is an anonymous array)

-enlil


Comment on Re: Basic Perl passing a temp array
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2015-07-30 11:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls