Why not: My $val = `$prog $host public $oid`; $val =~ m/Cisco/ && $found = 1 || $found = 0;
-----Oorspronkelijk bericht----- Van: Schroeder, Dennis [mailto:[EMAIL PROTECTED] Verzonden: woensdag 12 september 2001 19:48 Aan: [email protected] Onderwerp: [rrd-users] FW: More PERL Help Needed Owen, My bad there, I didn't type it into the message correctly. The quotes are in the correct locations. -----Original Message----- From: Owen DeLong [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 12, 2001 10:45 AM To: Schroeder, Dennis Subject: Re: [rrd-users] More PERL Help Needed If what you sent below is accurate depiction of your code, it means you're missing an opening quote on the argument to open after the FD, and that your closing quote is in the wrong place after the ) (should be after the |, before the ) ). Owen "Schroeder, Dennis" wrote: > > Another problem... > > [begin code sample] > open (FD, $prog $host public $oid |)" || die; > *my $val1 = <FD>; > close (FD); > [end code sample] > > I'm getting this error: > > Modification of a read-only value attempted at FILE.PL line 22. -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
