Help for this page

Select Code to Download


  1. or download this
    $ perl -Mstrict -wle'my @f = glob("*.mp3"); push @{$f[/ad/]}, $_ forea
    +ch @f;'
    Can't use string ("bar.mp3") as an ARRAY ref while "strict refs" in us
    +e at -e line 1.
    
  2. or download this
    $ perl -le '@f = glob("*.mp3"); push @{$f[/ad/]}, $_ foreach @f; use D
    +ata::Dumper; print Dumper(\@f, \@{"bad.mp3"}, \@{"bar.mp3"})'
    $VAR1 = [
    ...
    $VAR3 = [
              'bad.mp3'
            ];