in reply to system command

Thanks everyone for the help. I got a chance to learn couple of new things. BTW even after looking at the examples you guys provided i couldn't get it to run for so long because i didn't realise that i have to use ` instead i was using single code.
Thanks again, Gaurav
"Wisdom begins in wonder" - Socrates, philosopher

Replies are listed 'Best First'.
Re^2: system command
by Viki@Stag (Sexton) on Oct 31, 2007 at 14:27 UTC
    There is more than one way ...
    :)
    open( FH, "file_name" ) or die $!; @lines = <FH>; $num_of_lines = @lines; print "NUm of lines : $num_of_lines\n";

    YOu may do it this way tooo...