in reply to O/p of sysem command should be assigned to array variable in perl program and display the output.
Tip #1 from the Basic debugging checklist: warnings.
You need to escape the $2 in Perl:Use of uninitialized value $2 in concatenation (.) or string at
@ab=`ls | awk -F'[_]' '{print \$2}'`;
|
|---|