Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Re: Stripping a seemingly complicated comma-delimited file

by the_slycer (Chaplain)
on Jun 11, 2001 at 18:22 UTC ( [id://87501]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Stripping a seemingly complicated comma-delimited file
in thread Stripping a seemingly complicated comma-delimited file

The problem that you are running into here is with this line
$file = <HIPORT>;
What you have done there is not what you think. When you assing $file to the <> operator it grabs one line - not every line. Either assign it to an array (@file) which will put each line as an array entry, or even better loop through the file with
while my $file(<HIPORT>){ #do stuff }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://87501]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-26 00:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found