Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^3: storing system function output

by tirwhan (Abbot)
on Mar 10, 2010 at 10:14 UTC ( #827744=note: print w/replies, xml ) Need Help??

in reply to Re^2: storing system function output
in thread storing system function output

So after being told that system is not the right way to do this you still insist that it's what you want to use. And "specifically", too. Fine, here you go:

#!/usr/bin/perl use strict; use warnings; my $r=`perl -e 'system("ls")'`;

That uses system and will make your tutor give you 0 points for the exercise along the way.

All dogma is stupid.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://827744]
[sierpinski]: Corion I haven't -- but it sounds like you could corner the market on such a tool if you desired.
Discipulus if thezip is still around can be interested into How to hide/inhibit the console window when launching a Perl script on Windows?

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (13)
As of 2017-03-27 19:14 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (321 votes). Check out past polls.