Thanks.

I tried to simplify a couple of things when I sent out the first email to
make it easier for help. Sorry for the type-o. The single quotes wont work
with this though:

$hexval="011884455667733";
$newval='hba0-SCSI-target-id-7-name="$hexval"';
@output = `/usr/bin/perl -p -i -e
"s/hba0-SCSI-target-id-1-name=(.*)/$newval/;" /kernel/drv/qla2300.conf`;

becuase I neglected to tell you I am using a variable name in there as well
($hexval).

How can I get the string:

hba0-SCSI-target-id-7-name="011884455667733"

to appear in my qla2300.h file? That   s/old/new    command will not put my
quotes in the file??

Thanks,
Todd

"John Doe" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Todd am Mittwoch, 17. August 2005 16.16:
> > Hi,
> >
> > I am having a problem. I have a string ($newval) that has quotes (") in
it:
> >     $newval="hba0-SCSI-target-id-7-name=\"0011884455667733\"";
>
> This shouldn't be a problem.
>
> But there is no reason to use interpolating quotes:
>
> $newval='hba0-SCSI-target-id-7-name="0011884455667733"';
>
> or
> $newval=q(hba0-SCSI-target-id-7-name="0011884455667733");
>
> > I can print $newval and I see this:
> >
> >     print "Variable newval = $newval;
>
> A double quote is missing here.
>
> >     Variable newval =   "hba0-SCSI-target-id-7-name="0011884455667733"
>
> Could not reproduce your problem.
>
> [...]



-- 
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