Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2016-10-26 00:09 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (330 votes). Check out past polls.