Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Re: strict

by arturo (Vicar)
on Feb 02, 2001 at 01:47 UTC ( [id://55856]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: strict
in thread strict

Whoops. The problem is that the second way I gave you won't work because the my $line part of it will fail -- and the variable won't be declared -- if you read in a blank line from the file you're looking through. So you could get a loop with the same logic by changing it to:

while (my $line = <> ) { push @lines, $line unless $line eq ".\n"; }

HTH

Philosophy can be made out of anything. Or less -- Jerry A. Fodor

Replies are listed 'Best First'.
Re: Re: Re: Re: strict
by snowrider (Pilgrim) on Feb 02, 2001 at 01:52 UTC
    thank you you have been a big help!! snowrider

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-24 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found