Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Variable usage

by ChemBoy (Priest)
on Mar 05, 2009 at 07:34 UTC ( #748442=note: print w/ replies, xml ) Need Help??


in reply to Re: Variable usage
in thread Variable usage

If the OP were to persist in prematurely optimizing, of course, the only thing you could meaningfully optimize this code for would be the number of bytes of code, in which case the naive solution for the critical section would be

$\ = $/; print foreach (@numbers);
Though at that point, we've opened the door into whole new realms of time-wasting. ;-)



If God had meant us to fly, he would *never* have given us the railroads.
    --Michael Flanders

Replies are listed 'Best First'.
Re^3: Variable usage
by ikegami (Pope) on Mar 05, 2009 at 07:37 UTC
    $, = $\ = $/; print @numbers;
    Or in 5.10...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2016-06-30 05:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (389 votes). Check out past polls.