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

Re: $_ haters anonymou

by extremely (Priest)
on Dec 11, 2000 at 15:59 UTC ( [id://46065]=note: print w/replies, xml ) Need Help??


in reply to $_ haters anonymou

From now on, think of for like this:
for local $_ () { #code }

Try this on to see that behavior: and yes, it's evil

#!/usr/bin/perl -w use strict; sub x {print @_} $_=["ah!\n","er?\n"]; for (@$_) { x "+$_"; for (split//, $_) { x "-$_"; } }

--
$you = new YOU;
honk() if $you->love(perl)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-03-29 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found