in reply to O/p of sysem command should be assigned to array variable in perl program and display the output.

Read Writeup Formatting Tips, then edit your post to use "code" tags around your code snippets and output data.

Tip #1 from the Basic debugging checklist: warnings.

Use of uninitialized value $2 in concatenation (.) or string at
You need to escape the $2 in Perl:
@ab=`ls | awk -F'[_]' '{print \$2}'`;
  • Comment on Re: O/p of sysem command should be assigned to array variable in perl program and display the output.
  • Select or Download Code