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

Re: qw with anonomous list ref

by fruiture (Curate)
on Oct 28, 2002 at 22:56 UTC ( #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
Node Status?
node history
Node Type: note [id://208632]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2014-12-28 09:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (180 votes), past polls