On Thu, 17 Apr 2008 12:00:12 -0700, you wrote:
>I have a basic project in which I need to break a larger file down into
>35 separate files. I was under the impression that use FileHandle would
>store the object in $fh. I could then create a a copy of my file, save
>the associated
From: "Adam R. Frielink" <[EMAIL PROTECTED]>
> I have a basic project in which I need to break a larger file down into
> 35 separate files. I was under the impression that use FileHandle would
> store the object in $fh. I could then create a a copy of my file, save
>
> So, joyfully, I wrote the following:
use FileHandle;
foreach my $key (0 .. 34) {
$fh = new FileHandle "> VTOL$key";
$flist{$key} = $fh;
print $flist{$key} "Header info\n";
}
> But it will not compile, it errors with:
C:\>VTOLparser.pl
String fo
I have a basic project in which I need to break a larger file down into
35 separate files. I was under the impression that use FileHandle would
store the object in $fh. I could then create a a copy of my file, save
the associated object in a hash array and print some header information
for the