Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Is it real? (mu)

by apotheon (Deacon)
on Jun 01, 2006 at 18:33 UTC ( #553115=note: print w/ replies, xml ) Need Help??


in reply to Re: Is it real? (mu)
in thread Is it real?

I'd expect a programmer to understand how it is interpreted as roughly equivalent to "Which is (the most) real?" — just think of "it" as a variable! Sure, it doesn't start with a dollar sign, but not all variables are in Perl.

it = "Bigfoot"; print "Is it real?";

output:
Is Bigfoot real?

print substr("Just another Perl hacker", 0, -2);
- apotheon
CopyWrite Chad Perrin


Comment on Re^2: Is it real? (mu)
Download Code
Replies are listed 'Best First'.
Re^3: Is it real? (mu)
by tye (Cardinal) on Jun 01, 2006 at 18:37 UTC

    That would explain why voting for Bigfoot would be voting for "Is Bigfoot real?", but does not explain why such a vote would be interpretted as voting for "Bigfoot is real". If people appeared to be interpretting the poll as "I most like to question the reality of _", then I might buy your argument. As is, it looks like "logic as a second language". ;)

    - tye        

      Ah, but: keep in mind that in Perl (as well as some other languages) having any positive value at all causes a variable to evaluate as "true" when tested for "truth". Thus, a vote for "Is Bigfoot real?" assigns it a value that evaluates as "true", aka "yes".

      Or something.

      DWIM, darn you! DWIM!

      print substr("Just another Perl hacker", 0, -2);
      - apotheon
      CopyWrite Chad Perrin

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2015-07-30 01:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls