Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: qw with anonomous list ref

by fruiture (Curate)
on Oct 28, 2002 at 22:56 UTC ( [id://208632]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @x = \qw(a b c);
    print "$_ $$_ \n" for @x;
    
  2. or download this
    my @x = [qw(a b c)]; #@x has one element
    print "$_ @$_\n" for @x;
    
  3. or download this
    my $x = \qw(a b c);
    print "$x $$x\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-23 13:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found