Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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
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,
    -Chuck

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://69822]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (19)
As of 2014-07-14 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (260 votes), past polls