Steve Bertrand wrote:
Hi all,Can someone explain to me how I can fix this up to achieve my desired results?my $time = (split (/:/, (grep (/^info/, @contents))))[0];
I figured it out :) my $time = (split (/:/, (grep (/^info/, @contents))[0]))[0];I neglected to realize that the result from grep was in scalar context until I specified it as an array.
Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/