in reply to $_ works, $my_variable doesn't?

$ perl -MO=Deparse,-p -e '$one_line =~ /a/i && /e/i && /i/i && /o/i && + /u/i' ((((($one_line =~ /a/i) and /e/i) and /i/i) and /o/i) and /u/i); ...
Note that the later regexen aren't applying to $one_line, but rather $_. Oops!

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re: •Re: $_ works, $my_variable doesn't?
by C_T (Scribe) on Mar 29, 2004 at 22:29 UTC
    Randal,

    Very unintentionally cool to get this answer given that the problem in question is on page 91 of YOUR BOOK! Is saying "thanks" considered bad form around here? Don't want to anger anyone by posting follow-ups of "Thanks!".

    Consider my day made.

    Charles Thomas
    Madison, WI