Also, there should be a space between #!/usr/bin/perl and the -w switch. Manav
-----Original Message----- From: bright true [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 10:51 PM To: Earthlink-m_ryan Cc: beginners@perl.org Subject: Re: accidently changed stdout | can't print to screen Hello , sorry i didn't read it carefully .. well , first try by removing the "exit" at the END check the Error LOGS to see if there's an Error which make the output doesn't appear on the screen bye On Tue, 1 Mar 2005 10:40:53 -0500, Earthlink-m_ryan <[EMAIL PROTECTED]> wrote: > Has anyone ever accidentally changed the stdout for perl to nowhere. I can't > print anything to the screen from the command prompt with - > > #! /usr/bin/perl-w > use strict; > print "Hello world. \n"; > exit; > > result = "" > I run perl 5.6 on a windoze machine, this is the first time I've ever seen > this. > I checked the last few programs that I ran with perl and can't find anything > that would have changed any environment variables. > Does anyone know what I might have mesed up messed up, or how I could debug > this problem > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> ********************************************************* Disclaimer: The contents of this E-mail (including the contents of the enclosure(s) or attachment(s) if any) are privileged and confidential material of MBT and should not be disclosed to, used by or copied in any manner by anyone other than the intended addressee(s). In case you are not the desired addressee, you should delete this message and/or re-direct it to the sender. The views expressed in this E-mail message (including the enclosure(s) or attachment(s) if any) are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of MBT. This e-mail message including attachment/(s), if any, is believed to be free of any virus. However, it is the responsibility of the recipient to ensure that it is virus free and MBT is not responsible for any loss or damage arising in any way from its use ********************************************************* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>