http://qs321.pair.com?node_id=660534


in reply to Re: What happened to dor and err in Perl 5.10?
in thread What happened to dor and err in Perl 5.10?

Thank you. That's exactly what I am looking for.

  • Comment on Re^2: What happened to dor and err in Perl 5.10?

Replies are listed 'Best First'.
Re^3: What happened to dor and err in Perl 5.10?
by ikegami (Patriarch) on Jan 05, 2008 at 14:44 UTC

    Just like or is almost only be useful in structures of the form

    func arg or stmt;

    err would almost only be useful in structures of the form

    func arg err stmt;

    Simply replacing err with // would be wrong, but appropriate use of parens will do the trick:

    func(arg) // stmt;
    (func arg) // stmt;
    if (not defined func arg) { stmt; }

    etc.