Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: Re: Optimization for readability and speed (discussion)

by merlyn (Sage)
on Apr 30, 2001 at 22:26 UTC ( #76695=note: print w/ replies, xml ) Need Help??


in reply to Re (2): Optimization for readability and speed (discussion)
in thread Optimization for readability and speed (code)

I'm again going to disagree. What you've written is neither C nor Perl, and something kinda awful in between. Perl experts will wince, and C experts will lack the Perl understanding to pick it up.

Either make it native Perl, or don't write it in Perl.

It's also broken as Perl. You return from the middle of the subroutine that sets $", but you don't reset it! That breaks the rest of the program. Use this instead (if you must):

local $" = '';
Then no matter what exit you take, the caller's value of $" is preserved.

-- Randal L. Schwartz, Perl hacker


Comment on Re: Re: Re: Optimization for readability and speed (discussion)
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2014-12-22 09:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (113 votes), past polls