in reply to Re: Line input clipped from my array?
in thread Line input clipped from my array?

That is exactly what is bugging me about this Zaxo, that IS all the code:
#!/usr/local/bin/perl -w use strict; my @a=<STDIN>; print @a;
I am so baffled! I'm doing this as one of the exercises in Llama Ch. 4. I had assumed y'all would respond with a "Well of course it's doing that, you did ......."
jg

Replies are listed 'Best First'.
Re: Re: Re: Line input clipped from my array?
by jerrygarciuh (Curate) on Sep 24, 2001 at 19:34 UTC
    Additionally,
    #!/usr/local/bin/perl -w use strict; my @a=<STDIN>; print $a[0]; print $a[1]; print $a[2];

    returns the contents of  $a[1] and  $a[2] but nothing (not even a newline) for  $a[0] .
    Arghhhh!
    jg