in reply to Re: Monk Specs.?
in thread Monk Specs.?

wow. super cool one liner, Hofmator!

can you explain to me the construct (specifically if /$date/..0;)? if i can understand it, i can use it :)

~Particle

Replies are listed 'Best First'.
Re: Re: Re: Monk Specs.?
by Hofmator (Curate) on Jan 16, 2002 at 19:56 UTC

    Read up on the bi-stable .. operator in perlop under 'Range Operators'.

    At first it evaluates to false. It changes its state to true once the condition on the left hand side (the regex matching $date) is true. It changes its state back to false when the right hand side is true. Here this is never the case (0) so the file is read until the end.

    -- Hofmator