David Gilden wrote:
>
Dear Perl Gurus,
Still struggling here...
The problem is the data in the middle of the match is on multiple lines.
Please reply directly and CC the list.
Not sure where you're headed David. There were three posts, all of which solved
your problem as I understand it. What
Dear Perl Gurus,
Still struggling here...
The problem is the data in the middle of the match is on multiple lines.
Please reply directly and CC the list.
Thanks,
D.G.
(kora musician / audiophile / webmaster @ www.coraconnection.com / Ft. Worth,
TX, USA)
>>
I am having a little trouble understand
David Gilden wrote:
>
> I am having a little trouble understanding matching and getting the sub
pattern
> saved to a Var. so that I can do a munge. I want to take the line returns and
change them into
> pipe characters '|'
> All data records start with a date i.e. 01/01/2006
> But there are fie
On 09/25/2006 06:47 AM, John W. Krahn wrote:
Mumia W. wrote:
On 09/24/2006 07:04 PM, David Gilden wrote:
I am having a little trouble understanding matching and getting the
sub pattern saved to a Var. so that I can do a munge. I want to take
the line returns and change them into pipe characters
John W. Krahn wrote:
>
> This should do what you want:
>
>
> open FI, 'test.txt' or die "Could not open 'test.txt' $!";
>
> my @lines;
> while ( ) {
> s/\s+\z//;
> if ( m!^\d\d/\d\d/\d{4}\|! ) {
Correction:
if ( @lines && m!^\d\d/\d\d/\d{4}\|! ) {
> print join( '|', spl
Mumia W. wrote:
> On 09/24/2006 07:04 PM, David Gilden wrote:
>>
>> I am having a little trouble understanding matching and getting the
>> sub pattern saved to a Var. so that I can do a munge. I want to take
>> the line returns and change them into pipe characters '|' All data
>> records start wi
David Gilden wrote:
> Greetings,
Hello,
> I am having a little trouble understanding matching and getting the sub
> pattern
> saved to a Var. so that I can do a munge. I want to take the line returns and
> change them into
> pipe characters '|'
> All data records start with a date i.e. 01/
On 09/24/2006 07:04 PM, David Gilden wrote:
Greetings,
I am having a little trouble understanding matching and getting the sub pattern
saved to a Var. so that I can do a munge. I want to take the line returns and change them into
pipe characters '|'
All data records start with a date i.e. 0