Re: use FileHandle;

2008-04-17 Thread Eric Amick
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 object in a has

Re: use FileHandle;

2008-04-17 Thread Jenda Krynicky
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 > the associated object in a ha

Re: use FileHandle;

2008-04-17 Thread Andy_Bach
> 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 found where operator expected at C:\VTOLpar

use FileHandle;

2008-04-17 Thread Adam R. Frielink
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 fi