From: Vadim <va...@vk...> - 2007-03-17 16:11:17
|
Jordi Delgado wrote: >Hi, > >I just installed the most recent version of Perl: perl-wince-arm-hpc-wce300 >and PerlIDE from R.Keuchel on my Jornada 720 in order to practice a little bit >with Perl (just for fun, I'm learning Perl). > >The problem is that I can't end an input line with any of the usual characters >(Ctrl-D or Ctrl-Z; Ctrl-C aborts the program). I mean, a simple program like: >@lines = <STDIN>; >print @lines; >does work but, apparently, there is no way to stop the input of data. > > STDIN, STDOUT, etc are emulated by celib only partially, so, sorry, no luck, this is port limitation! STDOUT is mirrored to file in a file system, which is also not good. So this particular aspect is not suitable for learning Perl behaviour. My advice is, for example, using __DATA__ file, or even just initialize your experimental data within program itself... @lines = <DATA>; print @lines; __DATA__ foo bar fluffy Vadim. |