Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Turning numbers to 1!

by alexm (Chaplain)
on Jul 03, 2008 at 20:51 UTC ( [id://695470]=note: print w/replies, xml ) Need Help??


in reply to Turning numbers to 1!

Instead of
$set_S[$r] = [$r];
you can just say
$set_S[$r] = $r;
and then
print "$set_S[$s]\t$epsilons[$s]\t"; $set_S[$s] = $set_S[$s] + $epsilons[$s]; print $set_S[$s], "\n";
I don't see any reason to enclose $r on an anonymous array reference, at least in this context.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://695470]
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: (2)
As of 2026-01-14 01:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (118 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.