in reply to Line input clipped from my array?
I think you need to show more of the code. Here is what I get with your three examples:
Do you do other manipulations of STDIN?$ echo "foo > bar > baz > " | perl -e 'my @a = <STDIN>; print @a' foo bar baz $ echo "foo > bar > baz > " | perl -e 'my @a = <STDIN>; print "\n @a"' foo bar baz $ echo "foo > bar > baz > " | perl -e 'my @a = <STDIN>; chomp(@a); print @a' foobarbaz$
Update: Hmmmm, that is strange. I think chromatic's suggestion of something funny in the input file is likely. Also, do you (maybe in some init file) set $[=1; to get one-based indexing? That doesn't seem likely, but this is a puzzler.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Line input clipped from my array?
by jerrygarciuh (Curate) on Sep 24, 2001 at 18:41 UTC | |
by jerrygarciuh (Curate) on Sep 24, 2001 at 19:34 UTC |