Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: problems with truncate function (deparse)

by david2008 (Scribe)
on Jun 26, 2013 at 09:26 UTC ( #1040738=note: print w/ replies, xml ) Need Help??


in reply to Re^2: problems with truncate function (deparse)
in thread problems with truncate function

Hi, You are correct :-)
I ran the perl with the B::Deparse module
Perl parses the line

truncate $fh,0 || die "could not truncate $dcs_log_file: $!";
to
truncate $fh, die("could not truncate ${log_file}: $!");
Now i also understand the difference between || and or :-)

In || it makes 0|| before truncate.
with or it would make the truncate before

Thanks,
David


Comment on Re^3: problems with truncate function (deparse)
Select or Download Code
Re^4: problems with truncate function (deparse)
by MidLifeXis (Prior) on Jun 26, 2013 at 12:17 UTC

    See also the precedence table in perlop.

    --MidLifeXis

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2014-07-25 11:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (170 votes), past polls