Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Perl script to Parse a file for a string

by 2teez (Vicar)
on Jun 05, 2014 at 20:35 UTC ( [id://1088913]=note: print w/replies, xml ) Need Help??


in reply to Perl script to Parse a file for a string

wouldn't
if(condition){ .. } else{ ... }
within the while loop work? Except, I don't get the question you are asking.
Then why call the subroutrine within itself?
If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Replies are listed 'Best First'.
Re^2: Perl script to Parse a file for a string
by user786 (Sexton) on Jun 05, 2014 at 21:23 UTC
    "Then why call the subroutrine within itself?" Sorry,That was a mistake, I updated the code, I'm not calling within itself.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-25 22:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found