Re: Reading file from web into a hash

2010-02-18 Thread Herb
On Feb 16, 8:06 pm, jwkr...@shaw.ca ("John W. Krahn") wrote: > Herb wrote: > > Hi All, > > Hello, > > > I am a perl novice and am having some trouble with formatting a web > > file to put into a hash.  I have the following code: > > > #!/usr/bin/perl -w > > > use LWP::Simple; > > #use strict; > > >

Re: Reading file from web into a hash

2010-02-16 Thread John W. Krahn
Herb wrote: Hi All, Hello, I am a perl novice and am having some trouble with formatting a web file to put into a hash. I have the following code: #!/usr/bin/perl -w use LWP::Simple; #use strict; sub sws { my $file = shift; You should probably pass the filehandle instead of the