Thanks all
it worked.
--Irfan
From: Dr.Ruud
To: beginners@perl.org
Sent: Wed, August 18, 2010 12:35:57 AM
Subject: Re: print string in file
Irfan Sayed wrote:
> print MYFILE "\n" where MYFILE is a
> file
>handler.
s/handler/handle/
Irfan Sayed wrote:
print MYFILE "\n"
where MYFILE is a file handler.
s/handler/handle/
print $MYFILE qq{\n};
--
Ruud
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
On 10-08-17 07:59 AM, Irfan Sayed wrote:
Hi All,
I need to print some string into the file.
the string is like this : ""
i have written code like this :
print MYFILE "\n" where MYFILE is a file
handler.
if i run this code , it is giving so many syntax errors.
any advice please
Regards
Irfan
From: Irfan Sayed
> I need to print some string into the file.
> the string is like this : ""
>
> i have written code like this :
> print MYFILE "\n" where MYFILE
is a file
> handler.
>
> if i run this code , it is giving so many syntax errors.
> any advice please
You can't have unescaped q