Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: replacing order element in array

by Not_a_Number (Prior)
on Apr 18, 2007 at 18:41 UTC ( #610815=note: print w/replies, xml ) Need Help??


in reply to Re: replacing order element in array
in thread replacing order element in array

...he says it's not an issue, due to the fact that the values are all 4-digit numbers.

But it is. Try it with these values to see:

my @one = ( 1234, 5678, 9012 ); my @two = ( 1234, 7891, 9001, 9002 ); my $bad = 5678;

Output:

Use of uninitialized value in join or string at junk.pl line 21. 1234 5678 9012 9002

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2021-11-28 13:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?