Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Perl 6, arrays, hashes, subroutines & basic file IO

by lidden (Curate)
on Nov 01, 2006 at 15:19 UTC ( [id://581686] : note . print w/replies, xml ) Need Help??


in reply to Perl 6, arrays, hashes, subroutines & basic file IO

print; to print $_ is now spelled .print; notice the dot.

Replies are listed 'Best First'.
Re^2: Perl 6, arrays, hashes, subroutines & basic file IO
by blazar (Canon) on Nov 01, 2006 at 15:51 UTC
    print; to print $_ is now spelled .print; notice the dot.

    And also, with reference to the point you're actually referring to, for is now good for looping over a handle too, thanks to lazy evaluation, thus:

    # LOOP OVER STDIN for =<> { .print; }