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.
In reply to Re^3: storing system function output
by tirwhan
in thread storing system function output
by karthigayan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |