Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2023-12-08 03:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (35 votes). Check out past polls.

    Notices?