in reply to Formating in print

Your <STDIN> is printing all user input, including the carriage return you type to complete input. See How can I get just one character from STDIN?

Replies are listed 'Best First'.
Re: Re: Formating in print
by CompuKid101 (Novice) on Apr 11, 2002 at 01:15 UTC
    OK i see! thanks

    i thought the chomp deleted the \n BEFORE it could make a newline

    i guess i was wrong!

    im also making another program that will use the cd-tray to lock a door with a password (dont ask... another of my whacko ideas! the cd-tray will move a lever etc.)

    i will use the system command "eject" to open and close the tray. what i need is a way to find the status of the tray. is it open? is it closed? im looking into the Audio::CD module to see if the "stat" command will work

    any ideas on this insane project?