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 =)