in reply to Re: Help with range operator
in thread Help with range operator

OTOH I think he really wants

if (1 .. $not_default eq '') { do this ; }

or even

if (1 .. !$not_default) { do this ; }

Replies are listed 'Best First'.
Re^3: Help with range operator
by ikegami (Patriarch) on May 16, 2006 at 15:09 UTC

    Well, it's either
    if (1 .. $not_default eq '')
    or
    if (1 .. $not_default eq "\n")
    depending on whether he chomps or not (if $_ is coming from a file as I suspect).