http://www.perlmonks.org?node_id=827744


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.