in reply to Parse string as an option
I didn't really understand what you want to do. Do you have a problem parsing a ";" delimted line of output? Or is the problem related to reading line-by-line from other script?
a) my @elements = split /;/, $line_of_output;
b) read line-by-line from output of 'ls -l'
Is any of that helpful?open my $fh, "-|", "ls -l" or die $!; while(defined(my $line = <$fh>)) { print $line; } close $fh or die "ERROR: Couldn't read from pipe: $!";
|
|---|