in reply to Parse string as an option

Hi

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'

open my $fh, "-|", "ls -l" or die $!; while(defined(my $line = <$fh>)) { print $line; } close $fh or die "ERROR: Couldn't read from pipe: $!";

Is any of that helpful?
McA