in reply to suppressing stat/newline warning

In old perl you can't be so specific, but in 5.6+ you can say:

{ no warnings 'newline'; -e "${dir}/foo" or mkdir "${dir}/foo"; }

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: suppressing stat/newline warning
by superpete (Beadle) on Nov 14, 2002 at 19:36 UTC
    Rats! I want to support perl 5.0x Thanks for the post, though, I learned something new!