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 studying the Monastery: (6)
As of 2016-06-25 09:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (323 votes). Check out past polls.