thanks all, the different ways suggested by you gave me a lot of learning.
regards, Mihir On 11/5/06, Robin Norwood <[EMAIL PROTECTED]> wrote:
"Mihir Kamdar" <[EMAIL PROTECTED]> writes: > 1. (*) text/plain > > hi, > > I am a beginner in Perl. I am trying to automatically generate a perl test > case file which, on executing, would return HTTP response code and response > time,etc. In the output file that I am getting I want the following line: > > print "\n" ; > > Any Suggestions?? How about: #!/usr/bin/perl use warnings; use strict; # One way my $line = q(print "\n";) . "\n"; print $line; # Another way: print <<EOQ; print "\\n"; EOQ For more info, look in perldoc perlop for: "Quote and Quote-like Operators" -RN -- Robin Norwood Red Hat, Inc. "The Sage does nothing, yet nothing remains undone." -Lao Tzu, Te Tao Ching