AW: Reading from a filehandle in while-loop
From: Bastian Angerstein (ang_at_nmc-m.dtag.de)
Date: 10/26/04
- Next message: Flemming Greve Skovengaard: "Re: Reading from a filehandle in while-loop"
- Previous message: Chris Cole: "Re: Reading from a filehandle in while-loop"
- In reply to: Flemming Greve Skovengaard: "Re: Reading from a filehandle in while-loop"
- Next in thread: Flemming Greve Skovengaard: "Re: Reading from a filehandle in while-loop"
- Reply: Flemming Greve Skovengaard: "Re: Reading from a filehandle in while-loop"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: <beginners@perl.org> Date: Tue, 26 Oct 2004 12:03:30 +0200
Joop,
if I use open... or die "$!" i see that the file is opened correctly but nothing is in $_.
-----Ursprüngliche Nachricht-----
Von: Flemming Greve Skovengaard [mailto:dsl58893@vip.cybercity.dk]
Gesendet: Dienstag, 26. Oktober 2004 11:45
An: beginners@perl.org
Cc: Bastian Angerstein
Betreff: Re: Reading from a filehandle in while-loop
Bastian Angerstein wrote:
> Why does this don´t work in my Script?
>
> open (TEST, "</tmp/test.txt");
> while (<TEST>) {
> print $_;
> # or just
> print;
> }
>
>
Does the file exists and can you read it?
-- Flemming Greve Skovengaard The killer's breed or the Demon's seed, a.k.a Greven, TuxPower The glamour, the fortune, the pain, <dsl58893@vip.cybercity.dk> Go to war again, blood is freedom's stain, 4112.38 BogoMIPS Don't you pray for my soul anymore.
- Next message: Flemming Greve Skovengaard: "Re: Reading from a filehandle in while-loop"
- Previous message: Chris Cole: "Re: Reading from a filehandle in while-loop"
- In reply to: Flemming Greve Skovengaard: "Re: Reading from a filehandle in while-loop"
- Next in thread: Flemming Greve Skovengaard: "Re: Reading from a filehandle in while-loop"
- Reply: Flemming Greve Skovengaard: "Re: Reading from a filehandle in while-loop"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|