nsheth has asked for the wisdom of the Perl Monks concerning the following question:
Hi
How do i fix the below error:
Can't locate object method "Open" via package "IO::Handle" (perhaps yo +u forgot to load "IO::Handle"?) at C:\Data\Nirmal\perl\clearcase\tt.p +l line 6.
############################################### #!c:\perl\bin use strict; my $file="PCFD\.txt"; Open PFN, "<$file"; my @array = <PFN>; Close PFN; foreach (@array) { print(); }
Thank You
Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error:Can't locate object method "Open"
by japhy (Canon) on Jun 09, 2006 at 12:39 UTC | |
by Herkum (Parson) on Jun 09, 2006 at 13:16 UTC | |
by nsheth (Initiate) on Jun 09, 2006 at 12:42 UTC | |
|
Re: Error:Can't locate object method "Open"
by Fletch (Bishop) on Jun 09, 2006 at 12:41 UTC | |
|
Re: Error:Can't locate object method "Open"
by roboticus (Chancellor) on Jun 09, 2006 at 12:47 UTC |