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