Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Pure Perl or the toolkit?

by bm (Hermit)
on Aug 21, 2003 at 10:17 UTC ( #285410=note: print w/ replies, xml ) Need Help??


in reply to Pure Perl or the toolkit?

...shell out to do something, or do it all in Perl. Many purists argue that if it's possible to do it in Perl, you should do it in Perl. Portability and such.

I am not sure it is possible to argue that one should *generally* use a pure Perl solution, or *generally* shell out.
It's on a case by case basis.

For me, I suppose the deciding factor is portability requirements.

If the code needs to run in many different environments, such as CPAN module, then I would use pure Perl as much as possible. Definitely if it is possible in the core, less likey if a non-core modules is required. The result is probably quicker execution time.

If my production environment is limited to a certain type, as in your specific example, where the environment may be assumed, then I see nothing wrong with using the toolkit. The result is probably quicker implementation time.
--
bm


Comment on Re: Pure Perl or the toolkit?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://285410]
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: (11)
As of 2014-09-19 16:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (143 votes), past polls