megaurav2002 has asked for the wisdom of the Perl Monks concerning the following question:
Now i want to get the total number of lines in the file. But the $returnVal only stores the status of execution of system command i.e.success or failure. Any idea how can i get it to return me the number of lines in the file. Thanks in advance Gauravmy $returnVal = system("wc -l fileName");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: system command
by ikegami (Patriarch) on Oct 31, 2007 at 02:56 UTC | |
by megaurav2002 (Monk) on Oct 31, 2007 at 03:04 UTC | |
by ikegami (Patriarch) on Oct 31, 2007 at 03:09 UTC | |
by megaurav2002 (Monk) on Oct 31, 2007 at 03:19 UTC | |
by ikegami (Patriarch) on Oct 31, 2007 at 03:21 UTC | |
by NetWallah (Canon) on Oct 31, 2007 at 03:39 UTC | |
by Gangabass (Vicar) on Oct 31, 2007 at 03:49 UTC | |
| |
by erroneousBollock (Curate) on Oct 31, 2007 at 03:34 UTC | |
by ikegami (Patriarch) on Oct 31, 2007 at 03:39 UTC | |
|
Re: system command
by downer (Monk) on Oct 31, 2007 at 03:43 UTC | |
|
Re: system command
by megaurav2002 (Monk) on Oct 31, 2007 at 04:32 UTC | |
by Viki@Stag (Sexton) on Oct 31, 2007 at 14:27 UTC |