Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re (tilly) 1: What would you do?

by tilly (Archbishop)
on Mar 16, 2001 at 04:31 UTC ( [id://64849]=note: print w/replies, xml ) Need Help??


in reply to What would you do?

I would write it like merlyn did except less tersely:
foreach my $i (0..$#list) { $list[$i] = "hi" unless $i%2; # Change evens }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-18 04:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found