in reply to help with Print

@files = <*>;

...and that is considered ancient perl syntax. Do this instead:

use strict; use warnings; use 5.010; for my $file (glob '*') { say $file; }

Replies are listed 'Best First'.
Re^2: help with Print
by Jenda (Abbot) on Jun 20, 2011 at 14:10 UTC

    There's nothing ancient about using the diamond operator for globing. As in this case the wildcard processing is actually not needed, it'd probably be better to use opendinr&readdir as that doesn't put the whole list of files into memory at once, but that doesn't really matter in most cases.

    Jenda
    Enoch was right!
    Enjoy the last years of Rome.