Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-04-19 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found