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

Re^2: For whom would you vote, if you were an American?

by radiantmatrix (Parson)
on Nov 02, 2004 at 20:00 UTC ( #404733=note: print w/replies, xml ) Need Help??


in reply to Re: For whom would you vote, if you were an American?
in thread For whom would you vote, if you were an American?

$am_american = 1; #pretend we're american, even if we aren't if ($am_american) { who_vote(@candidate); }
Clear it up for you? ;-)

radiantmatrix
require General::Disclaimer;
"Users are evil. All users are evil. Do not trust them. Perl specifically offers the -T switch because it knows users are evil." - japhy

Replies are listed 'Best First'.
Re^3: For whom would you vote, if you were an American?
by gaal (Parson) on Nov 03, 2004 at 14:30 UTC
    Shouldn't that be:

    { local $am_american = 1; #pretend we're american, even if we aren't if ($am_american) { who_vote(@candidate); } }
    Otherwise this code leaks citezenship. Or causes identity confusion; in any case, it looks like a bug.
      I note that there is no return value from who_vote()... intentional?
Re^3: For whom would you vote, if you were an American?
by hardburn (Abbot) on Nov 02, 2004 at 21:33 UTC

    Sorry, I was thinking:

    if(! $am_american) { who_vote(@candidate); }

    "There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.

      Perl provides us with unless...;)

      thor

      Feel the white light, the light within
      Be your own disciple, fan the sparks of will
      For all of us waiting, your kingdom will come

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2021-06-24 08:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (123 votes). Check out past polls.

    Notices?