Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Read And modify a series

by Anonymous Monk
on May 26, 2015 at 12:14 UTC ( [id://1127810]=note: print w/replies, xml ) Need Help??


in reply to Re: Read And modify a series
in thread Read And modify a series

my $a; $a = unshift(@array); while ($a == 1) $a = unshift(@array); if (defined($a)) unshift @array, $a;

The first two unshifts should be shifts. You've been advised plenty of times to test code before posting; the very least you could do is proofread it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-18 09:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found