On 5/15/06, Smith, Derek <[EMAIL PROTECTED]> wrote:

I tried an push @mir2 => (unless /lv\d+/i, `lvdisplay $lv`); in place of
the third push

But that gave me an error: Uncaught exception from user code:

       syntax error at HPUX_verify_system.pl line 127, near "(unless"

Yes; that's a syntax error. Did you mean something like this, perhaps?

 push @mir2,
   grep !/\|v\d+/i,     # select lines that don't match pattern
   `vddisplay $lv`;

Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to