newbie: unusual email output

From: Duke of Hazard (faraz_hussain_at_yahoo.com)
Date: 01/21/04

  • Next message: Jim Gibson: "Re: How to Control the default Unix Shell from Perl"
    Date: 21 Jan 2004 13:21:14 -0800
    
    

    I have this code:
    -----------------

    print MAIL "Comments if any:\n";
    print MAIL "================\n\n";
    print MAIL "$x_comments";
    print MAIL "\n\n";

    close (MAIL);

    Which produces this unexpected output when x_comments is null
    -------------------------------------------------------------

    Comments if any:
    ================

    omments if any:
    ================

    Any idea why it is printing it twice?

    Thanks,

    Faraz


  • Next message: Jim Gibson: "Re: How to Control the default Unix Shell from Perl"