Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

push foreach glob - bug?

by sfink (Deacon)
on Jan 13, 2010 at 22:37 UTC ( #817298=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -le 'push @{$f[/ad/]}, $_ foreach glob("*.mp3"); use Data::Dumper
    +; print Dumper(\@f)'
    
  2. or download this
    perl -le '@f = glob("*.mp3"); push @{$f[/ad/]}, $_ foreach @f; use Dat
    +a::Dumper; print Dumper(\@f)'
    
  3. or download this
    This is perl, v5.10.0 built for i386-linux-thread-multi
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2022-11-30 14:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?