in reply to cmd o/p- each line should be stored as each element in an Array?
How can this be acheived?It can be achieved thus:
or, more traditionally:perl -ne 'chomp; push @x,$_' Your_file_name
What have you tried ?chomp ( my @x = <> );
Our business is run on trust. We trust you will pay in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: cmd o/p- each line should be stored as each element in an Array?
by G Nagasri Varma (Novice) on Dec 03, 2015 at 10:26 UTC | |
by soonix (Chancellor) on Dec 03, 2015 at 12:48 UTC | |
by NetWallah (Canon) on Dec 03, 2015 at 21:55 UTC |