Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Potential Ternary Operator Bug

by blakem (Monsignor)
on Dec 11, 2001 at 00:38 UTC ( [id://130768]=note: print w/replies, xml ) Need Help??


in reply to Potential Ternary Operator Bug

Interestingly enough, taint-checking will make your first example to throw that error as well....
% perl -Te 'push @{ ($_ % 2) ? @odd : @even }, $_ for 1..20' Bizarre copy of ARRAY in leave at -e line 1. % perl -e 'push @{ ($_ % 2) ? @odd : @even }, $_ for 1..20' [no error.....]

-Blake

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-03-28 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found