Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Yay! (Score:2, Interesting)

    by clscott (4354) on 2004.02.10 9:14 (#28263) Journal
    I love it! Thank you.

    How about extending _ to mean the article passed to the previous test to apply to other tests?

    if ( exists $foo->{member} and defined $foo->{member}) {}


    if ( exists $foo->{member} and defined _ ) {}

    It's now just a little shorter ...
    • That would break existing programs. Besides, it's not equivalent to the file tests, since you're not caching the info needed for future tests when you do the first one.