Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

push foreach glob - bug?

by sfink (Deacon)
on Jan 13, 2010 at 22:37 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-19 07:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found