Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by blazar (Canon)
on Nov 01, 2006 at 15:51 UTC ( [id://581695]=note: print w/replies, xml ) Need Help??


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

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; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://581695]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2024-03-28 09:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found