Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^4: Execute a Perl code without ".pl" extension

by Moriarty (Abbot)
on Mar 10, 2006 at 02:53 UTC ( #535601=note: print w/replies, xml ) Need Help??

in reply to Re^3: Execute a Perl code without ".pl" extension
in thread Execute a Perl code without ".pl" extension

My personal preference is to leave to ".pl" in place as it tells me that I can edit it as a normal Perl script.

  • Comment on Re^4: Execute a Perl code without ".pl" extension

Replies are listed 'Best First'.
Re^5: Execute a Perl code without ".pl" extension
by thor (Priest) on Mar 10, 2006 at 04:25 UTC
    At least where I'm sitting, "executables" are sometimes compiled, sometimes perl scripts, sometimes shell get the idea. I use the "file" command to tell me what's what. And hey...file uses magic...really. The file that stores the heuristics that it uses for guessing is /etc/magic. :)


    The only easy day was yesterday

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://535601]
[ambrus]: that if you do that, you'd have to find where each HTTP response ends, which is nontrivial if you want persistent connections (essential for performance if you have small requests).
[Corion]: ambrus: Yes, ideally an API that I feed the incoming data piece by piece and that I can ask "is that response done" and "what should I do next" and "please construct the appropriate redirect for me"
[Corion]: ambrus: Yes, ideally the module would do all that nasty stuff for me and give me a way to ask it what the current situation is
[ambrus]: Corion: you could also consider using some wrapper over the multi interface of curl, I think Net::Curl might be a good one, since implementing enough of what it expects from the event loop might be easier than a full AnyEvent interface.
[ambrus]: Corion: you could also consider using IO::Async and its POE driver and some HTTP module for it, but I don't know if that would solve your problems with AnyEvent+POE
[ambrus]: Corion: wait, you didn't say POE. You said Prima, let me look up what that is.
[ambrus]: Corion: have you considered just writing an AnyEvent integration for that thing?
[ambrus]: Or perhaps pushing schmorp to write one?
[ambrus]: Also, searching for an existing one on CPAN obviously
[Corion]: Prima, which is mostly cooperative multitasking

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2016-12-07 16:07 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (130 votes). Check out past polls.