Hi, I am having a problem. I have a string ($newval) that has quotes (") in it: $newval="hba0-SCSI-target-id-7-name=\"0011884455667733\"";
I can print $newval and I see this: print "Variable newval = $newval; Variable newval = "hba0-SCSI-target-id-7-name="0011884455667733" I am using a nifty command that I learned about and need to to use that substitutes text in a file (s/oldtext/newtext): @output = `/usr/bin/perl -p -i -e "s/hba0-SCSI-target-id-1-name=(.*)/$newval/;" /kernel/drv/qla2300.conf`; and it works except when newval gets put in the file the quotes are missing!! I see this: hba0-SCSI-target-id-7-name=0011884455667733; When I want to see this in the file: hba0-SCSI-target-id-7-name="0011884455667733"; Can you help me? Thanks, Todd -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>