Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: map return to array reference

by Ieronim (Friar)
on Jan 24, 2007 at 17:06 UTC ( #596290=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $files_to_send = [map {"$stage/$_.pdf"} @{$self->_getGood()}];
    
  2. or download this
    my @ary = qw/a b c d/;
    my $var = @ary;     # $var is 4; @ary is interpreted in scalar context
    my $var1 = [@ary];  #$var is ['a','b','c','d']
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2014-09-17 21:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (99 votes), past polls