Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

RE: RE: This, too, was wasted on my wife.

by cciulla (Friar)
on May 02, 2000 at 01:47 UTC ( [id://9852]=note: print w/replies, xml ) Need Help??


in reply to RE: This, too, was wasted on my wife.
in thread This, too, was wasted on my wife.

THAT is pretty slick.

I'm ass-u-me-ing that the "foreach" construct is treated kinda-sorta like a function?

BTW, my wife thinks that these are the "geekiest" things she's seen me do.

  • Comment on RE: RE: This, too, was wasted on my wife.

Replies are listed 'Best First'.
RE: RE: RE: This, too, was wasted on my wife.
by Anonymous Monk on Jul 27, 2000 at 01:21 UTC
    actually, the "foreach" in the one-liner above is treated as more like my personal fav'rit use of "if", i.e.
    print $line if $line =~ /Perl/;
    e.g. "do this IF that"; similarly, the "foreach" says "do this for each of these." It's with constructs like these that you can tell Perl was designed by a linguist =)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-24 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found