|P is for Practical|
Help Matching Sections of a fileby smaida (Initiate)
|on Apr 04, 2004 at 23:59 UTC||Need Help??|
smaida has asked for the wisdom of the Perl Monks concerning the following question:
I am working on a perl script that needs to read in an entire text file and print out a certain section based on the input
Part of the text file is as follows--
I need the script to read in and search the text file for a line "Port $port" where $port is the port number and then print out everyline until the "#-----" line.
Currently I have the following which searches the text file and finds the line "Port $port"... But where do I go from there?
If someone could just point me in the right direction.