Re: Quote Problem during Substitution

2005-08-17 Thread John Doe
Todd am Mittwoch, 17. August 2005 17.45: > 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"; The choosed quoting operator above won't

Re: Quote Problem during Substitution

2005-08-17 Thread John W. Krahn
Todd wrote: > > 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

Re: Quote Problem during Substitution

2005-08-17 Thread Todd
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-

Re: Quote Problem during Substitution

2005-08-17 Thread John Doe
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-targ