in reply to missing quotes
This is the contents of the output file "out.txt":use warnings; use strict; my @head = '<reportparameters name="hostname">localhost</reportparamet +ers>'; open my $OUT_FH, '>', 'out.txt' or die "can not open out.txt: $!\n"; print $OUT_FH "@head\n"; close $OUT_FH;
<reportparameters name="hostname">localhost</reportparameters>
I'm not sure what you are trying to accomplish with the perl one-liner. Can you elaborate?
|
|---|