Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Modules which improve system() ?

by Gilimanjaro (Hermit)
on Jun 23, 2006 at 09:37 UTC ( #557126=note: print w/replies, xml ) Need Help??


in reply to Modules which improve system() ?

Ah! A Klingon programmer!

You would rather have your minions die then return in failure... Well, we can oblige...

You're looking for Perl6::Builtins, which you can use as follows:

use Perl6::Builtins qw( system ); system $cmd or croak "Couldn't run: $cmd ($OS_ERROR)";

Example was taken from TheDamian's Perl Best Practices.

Replies are listed 'Best First'.
Re^2: Modules which improve system() ?
by qbxk (Friar) on Jun 24, 2006 at 00:22 UTC
    That's incredibly interesting.
    we can prepare for tomorrow, today!

    are there any downsides, caveats, or cautions to using the Perl6 namespace? for example, are any of these going to change in subtle, bug-introducing ways down the road? or do they cause perl to run incredibly slow or something horrible? it seems too good to be true

    update... i answered my own question, here the dreaded source filter lurks...

    It's not what you look like, when you're doin' what you’re doin'.
    It's what you’re doin' when you’re doin' what you look like you’re doin'!
         - Charles Wright & the Watts 103rd Street Rhythm Band, Express yourself

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://557126]
help
Chatterbox?
[choroba]: Alma
[erix]: "may I eat your soul?"
[LanX]: hey I was told yesterday that "Alma Ata" means father of the apple (ex capital of Kazakhstan) ... so alma is Turkish
[Discipulus]: good point: alms ~charity I made a varronian etymology, sorry, from Alma ~soul
[erix]: alms, aalmoes, almosen from greek eleēmosúnē
[Discipulus]: Almosen is Elemosina in Eatalian
[erix]: yeah, you mediteraaneans are one big family :)
[Discipulus]: greece had to copyrigth etymologies to fill the debt..
[erix]: good no-nonsense american approach to these soft european practices: "Upon entering the Almshouses in Connecticut, patients were whipped up to 10 times"
Discipulus should have..

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2017-11-23 20:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (338 votes). Check out past polls.

    Notices?