Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Perl: the Markov chain saw
 
PerlMonks  

Re^4: Secret Perl Operators: the boolean list squash operator, x!!

by shmem (Canon)
on Jul 31, 2006 at 23:56 UTC ( #564892=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Secret Perl Operators: the boolean list squash operator, x!!
in thread Secret Perl Operators: the boolean list squash operator, x!!

I don't want to chew your head off, but I don't want to loose wantarray either. Strings are numbers, and numbers are strings, all of them are sequences of bits, utf-8 strings are binary and a file is a sequence of bytes or a set of records, which are sets of fields. It depends all of how you look at them, and that's called context. That's why IV and SV exist, and that's why a number is stored internally as a string as well, if it was used in string context; and both representations are strung together.

perl's context awareness may seem a swamp of pitfalls, but that's only until you understand it (by which statement I don't want to insinuate that you don't understand it.) But once you can speak perl it is just handy. In the long run? I don't know. Maybe we should just stick to C.

--shmem

_($_=" "x(1<<5)."?\n".q/)Oo.  G\        /
                              /\_/(q    /
----------------------------  \__(m.====.(_("always off the crowd"))."
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}


Comment on Re^4: Secret Perl Operators: the boolean list squash operator, x!!
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-04-20 18:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (486 votes), past polls