Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
P is for Practical
 
PerlMonks  

So what does 'inverse' mean?

by PsionicMan (Beadle)
on Apr 04, 2001 at 20:01 UTC ( [id://69864]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to (ar0n) Re: I've never seen this syntax before
in thread I've never seen this syntax before

What exactly does `inverse' mean in perl? Is it only in terms of 0 and everything else? Or is there some mathematical inversion that could be harnessed? Like reciprocals etc. I'm hoping it's the latter, but I suspect it's the former...

--Psi
print(pack("h*","e4f64702566756e60236c6f637560247f602265696e676021602075627c602861636b65627e2")."\n");

Replies are listed 'Best First'.
Re: So what does 'inverse' mean?
by Anonymous Monk on Apr 04, 2001 at 20:35 UTC
    If the operand is 0, a string beginning with "0", a null string, or undef the result is 1, otherwise the result is a null string.
      It says in Merlyn, et al's Learning Perl that both '00' and '0.00' evaluate to a boolean value of 1. It doesn't matter whether a string begins with 0.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://69864]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.