Are you versions of perl the same on both boxes, it sounds like your
concatenation isnt working as expected on one. 
Try just

my $message = "Completed CODE standards checks.\nFor details, refer to the
file." why concatinate when you don't have too. 
-----Original Message-----
From: Sundeep [mailto:[EMAIL PROTECTED] 
Sent: 20 September 2007 06:34
To: beginners@perl.org
Subject: Re: Abnormal behavior of print / syswrite

Tried:
print STDOUT ">>>$message<<<";

output:
 >>>Completed GSCC standards checks.

Its prob with print or the machine I'm working on. Same code works good when
run on other m/c. But my problem is I have to make it run in this m/c.

On Sep 20, 5:13 am, [EMAIL PROTECTED] (Jenda Krynicky) wrote:
> From: Sundeep <[EMAIL PROTECTED]>
>
> > A clue less problem for me...
>
> >         my $message = "Completed CODE standards checks.\n".
> >                       "For details, refer to the file 
> > $log_file_name.\n \n";
> >         print STDOUT $message;
>
> > I'm printing this message after some tests... and only message up to 
> > first new line is getting printed. When I remove first \n, whole 
> > message is printed in single line (as expected).
>
> Try to change that to
>
>     print STDOUT ">>>$message<<<\n";
>
> If you only get the >>> and the first line, it's something about the 
> print, if you get >>>, the fist line and <<<, then the message doesn't 
> contain what you thought it does.
>
> Jenda
> ===== [EMAIL PROTECTED] ===http://Jenda.Krynicky.cz===== When it comes 
> to wine, women and song, wizards are allowed to get drunk and croon as 
> much as they like.
>         -- Terry Pratchett in Sourcery



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



This e-mail is from the PA Group.  For more information, see
www.thepagroup.com.

This e-mail may contain confidential information.  Only the addressee is
permitted to read, copy, distribute or otherwise use this email or any
attachments.  If you have received it in error, please contact the sender
immediately.  Any opinion expressed in this e-mail is personal to the sender
and may not reflect the opinion of the PA Group.

Any e-mail reply to this address may be subject to interception or
monitoring for operational reasons or for lawful business practices.





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


Reply via email to