[kde-linux] Running PERL program in Konsole

Brian Carey BrianC at newmexicobusinesssolutions.com
Thu Jun 1 15:52:41 UTC 2006


It is normal that <> waits for input from STDIN, in this case the 
Konsole, since you did not specify anything else. In a scalar context it 
waits for and end of line (enter). In a list context it waits for an end 
of file (ctl-d). I do not get an uninitialized variable error using 
ctl-d with this line of code. Perhaps you need to post more of your code.

Brian

David Baron wrote:

>The program is accepting input via:
>chomp ($textin = <> );
>
>It is waiting for "enter". And continues waiting.
>
>I suppose I could type something else first. Got the program to continue 
>working hitting control/d, usual end of data. Produced error
>Use of uninitialized value in chomp at ..... line ####
>Program then continued on its expected track.
>
>What do I do for "normal" operation?
>___________________________________________________
>This message is from the kde-linux mailing list.
>Account management:  https://mail.kde.org/mailman/listinfo/kde-linux.
>Archives: http://lists.kde.org/.
>More info: http://www.kde.org/faq.html.
>
>
>  
>




More information about the kde-linux mailing list