Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: I've never seen this syntax before

by suaveant (Parson)
on Apr 04, 2001 at 23:24 UTC ( #69822=note: print w/replies, xml ) Need Help??

in reply to I've never seen this syntax before

no... the 2>&1 redirects stderr to stdout, so stderr and stdout from the command goes into $txt. if the sub ends with a print, the print will always return true unless it was unable to print. So the sub will probably almost always return true, the not will make the funtion return false. If it can't print, the return will be true... odd code...
                - Ant

Replies are listed 'Best First'.
Re: Re: I've never seen this syntax before
by ChuckularOne (Parson) on Apr 04, 2001 at 23:27 UTC
    I now see what's going on here. There is no || die on the file open. This freaky thing is testing to see if the file opened AFTER trying to write to it. Cool I can rip it out and put a file open || die in there.

    Good thing the guy who wrote this doesn't work here anymore.

    Your Humble Servant,

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://69822]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2018-05-23 18:59 GMT
Find Nodes?
    Voting Booth?