[rrd-users] Re: FW: More PERL Help Needed

Serge Maandag serge.maandag at staff.zeelandnet.nl
Thu Sep 13 12:20:26 MEST 2001

Why not: 

My $val = `$prog $host public $oid`;
$val =~ m/Cisco/ && $found = 1 || $found = 0; 

-----Oorspronkelijk bericht-----
Van: Schroeder, Dennis [mailto:Dennis.Schroeder at sanmina.com] 
Verzonden: woensdag 12 september 2001 19:48
Aan: rrd-users at list.ee.ethz.ch
Onderwerp: [rrd-users] FW: More PERL Help Needed


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:owen at delong.sj.ca.us]
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 ) ). 


"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:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the rrd-users mailing list