Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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

Comment on Re: I've never seen this syntax before
Download Code
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 examining the Monastery: (7)
As of 2015-11-25 04:28 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (670 votes), past polls