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

Re: Re: Would you use 'goto' here?

by chromatic (Archbishop)
on Dec 06, 2001 at 07:36 UTC ( #129847=note: print w/replies, xml ) Need Help??


in reply to Re: Would you use 'goto' here?
in thread Would you use 'goto' here?

eval string, from a mod_perl guy! I'd be shocked, if I didn't think you had a good reason. :)

I'd still prefer subrefs, can, and maybe even some symbolic references with map:

%commands = map { $_ => \&{ $_ } } keys %commands;

Season to taste.

Update: Not that eval is slow, but that eval string has some memory leaks not fixed until 5.8. That can be nasty in mod_perl.

Replies are listed 'Best First'.
Re: Re: Re: Would you use 'goto' here?
by ask (Pilgrim) on Dec 06, 2001 at 19:24 UTC
    In a program that'll fork and run another program, do multiple dns lookups, open and read a handful of files, write to the network, wait for the network and much more? Sure, we can eval half the day1 and it won't make much difference if any at all.

     - ask

    1) No, of course not literally half the day. :-)

    -- 
    ask bjoern hansen, http://ask.netcetera.dk/   !try; do();
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://129847]
help
Chatterbox?
[Corion]: Hmmm - and now that I look at it, the gallery I'm using doesn't produce non-Javascript compatible links in the sense that hotlinking to an image will only work for Javascript enabled...
[Corion]: On the other hand, maybe supporting non-Javascript isn't that much a priority, and I'm not exactly sure how I could make it work for both kinds of browsers without server-side magic
[Corion]: Should I ever come across far too much money, this would become my evil maniac lair ;)

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2017-02-27 08:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (377 votes). Check out past polls.