Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
hi Monks,
I have an array that looks like this.
@head=<reportparameters name="hostname">localhost</reportparameters>;
when I print the array with
print "array @head"
The quotes for the "hostname" are saved.
but when I try to do this.
`perl -pi -e "print '@headinfo ' if \$. == 1" $file`;
the quotes " go missing in the output file
somehow I need to retain the quotes.
in the output file.
please advice.
Code tags added by GrandFather
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: missing quotes
by toolic (Bishop) on Oct 22, 2007 at 20:33 UTC |