<GIN>
From: Eric Walker (ewalker_at_micron.com)
Date: 12/31/03
- Next message: Paul Kraus: "RE: Perl Newbie question: How would you take keyboard input and run a shell scrip with that input?"
- Previous message: Drieux: "Re: piped system commands"
- Next in thread: Tim Johnson: "RE: <GIN>"
- Maybe reply: Tim Johnson: "RE: <GIN>"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: perlgroup <beginners@perl.org> Date: 31 Dec 2003 10:57:04 -0700
OK, some how my $_ variable is out of sync with my <> operator.
if I print out $_ I get line a of my file and if I do a my $test =
<GIN>, and print out $test I get a different line that is more than the
next line away. example.
I am the best
you are the best
we are the best
they are the best.
print $_ "I am the best"
$test = <GIN>;
print $test "they are the best"
any suggestion on how to resync it?
perlknucklehead
- Next message: Paul Kraus: "RE: Perl Newbie question: How would you take keyboard input and run a shell scrip with that input?"
- Previous message: Drieux: "Re: piped system commands"
- Next in thread: Tim Johnson: "RE: <GIN>"
- Maybe reply: Tim Johnson: "RE: <GIN>"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|