in reply to Re: Flipin good, or a total flop?
in thread Flipin good, or a total flop?
If you're really interested on whether the start condition and/or end condition were triggered, there's another way: using variables to capture the test results. Like this:
Later, you simply have to test the boolean value of $start and $end:if((my $start = /start/) .. (my $end = /end/)) { ...
but only in the if BLOCK, of course (lexical scope for the variables).print "First time\n" if $start; print "Last time\n" if $end;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Flipin good, or a total flop?
by ysth (Canon) on Jan 26, 2006 at 03:25 UTC | |
by chibiryuu (Beadle) on Jan 27, 2006 at 21:53 UTC |
In Section
Tutorials