James,
    Yes. you are right. But my Q was, why such behaviour ? What is the idea behind 
such implementaiton?
thanks,
Jay

-----Original Message-----
From: James Edward Gray II [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 12:07 PM
To: Jayakumar Rajagopal
Cc: beginners Beginners
Subject: Re: why warn 'prints'?


On Mar 26, 2004, at 10:44 AM, Jayakumar Rajagopal wrote:

> Warn behaves like print, unless I add a space afer "\n". why ?

If warn ends in a \n, it prints the message as is.  If it doesn't, it 
appends the line number from the source.

Hope this helps.

James


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to