DeliriumNZ has asked for the wisdom of the Perl Monks concerning the following question:
Basically these records have the data start off with 000001 xxxxxx (xxxxxx being the telephone number) and the record ends with ______________________. The one I want to create has a record that starts off with 000001 Call ID 000001. But using the same code it doesn't work. Is there something different I need to do in the if statement?while(<LOGFILE>) { if(/^.*$PhoneNumber$/../^________________________________$/) { }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Extracting Multiline Records from a file
by davorg (Chancellor) on Jun 25, 2009 at 14:55 UTC | |
Re: Extracting Multiline Records from a file
by Transient (Hermit) on Jun 25, 2009 at 14:28 UTC | |
Re: Extracting Multiline Records from a file
by moritz (Cardinal) on Jun 25, 2009 at 14:43 UTC | |
Re: Extracting Multiline Records from a file
by si_lence (Deacon) on Jun 25, 2009 at 14:54 UTC |