in reply to Re: how do I write directly to a file
in thread how do I write directly to a file

  • Comment on Re: Re: how do I write directly to a file

Replies are listed 'Best First'.
Re: Re: Re: how do I write directly to a file
by Hofmator (Curate) on Jun 07, 2001 at 19:49 UTC

    To make that clear, because of operator precedence it's either

    open(FH,"filename") || die "somehow"; open(FH,"filename") or die "somehow"; # equivalent

    as davorg put it, or if you leave out the brackets for open you have to use or:

    open FH, "filename" or die "somehow";

    -- Hofmator