On Jan 11, 5:28 am, [EMAIL PROTECTED] (Rob Dixon) wrote:
> Enjoy_Life wrote:
>
> >
>
>
>
> > hi, who can tell me which is better of the following codes?
> > why there are different methods to read files?
> > thanks
>
> > 1. open(INPUT, "< filedata") or die "Couldn't open filedata for reading:
> >
Enjoy_Life wrote:
>
hi, who can tell me which is better of the following codes?
why there are different methods to read files?
thanks
1. open(INPUT, "< filedata") or die "Couldn't open filedata for reading:
$!\n";
while () {
print if /blue/;
}
close(INPUT);
2. use IO::File;
thanks
On Jan 11, 2008 5:04 PM, Jeff Pang <[EMAIL PROTECTED]> wrote:
> On Jan 11, 2008 2:00 PM, Enjoy_Life <[EMAIL PROTECTED]> wrote:
> > hi, who can tell me which is better of the following codes?
> > why there are different methods to read files?
> > thanks
> >
> > 1. open(INPUT, "< filedata")
On Jan 11, 2008 2:00 PM, Enjoy_Life <[EMAIL PROTECTED]> wrote:
> hi, who can tell me which is better of the following codes?
> why there are different methods to read files?
> thanks
>
> 1. open(INPUT, "< filedata") or die "Couldn't open filedata for reading:
> $!\n";
> while () {
> pr
hi, who can tell me which is better of the following codes?
why there are different methods to read files?
thanks
1. open(INPUT, "< filedata") or die "Couldn't open filedata for reading:
$!\n";
while () {
print if /blue/;
}
close(INPUT);
2. use IO::File;
$input = IO::File->ne