G Nagasri Varma has asked for the wisdom of the Perl Monks concerning the following question:
2. Perl program1431024666 1431037440 1431038327
output :#!/usr/bin/perl @ab=`ls | awk -F'[_]' '{print $2}'`; print "\@ab = @ab";
Question : I want to get the same output of the system command when i run the perl script. Can someone, guide what is missing here?@ab = ab_1431024666_1430960820_36398 ab_1431037440_1430958175_36390 ab_1431038327_1430958130_36387
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: O/p of sysem command should be assigned to array variable in perl program and display the output.
by Corion (Patriarch) on Dec 02, 2015 at 14:18 UTC | |
|
Re: O/p of sysem command should be assigned to array variable in perl program and display the output.
by toolic (Bishop) on Dec 02, 2015 at 14:20 UTC |