in reply to Re: File lines being treated as one.
in thread File lines being treated as one.
Which is the whole file, and not the line i want.open(FF, "$fixmessageloc"); while(<FF>){ chomp($_); if($_ =~ /35=D/){ printf("Found $_\n"); } } <code> Now this will return . <code> Found 1 06/02/23 11:16:05:390 Inbound:, Outbound:, Bidirectional:*** 2 06/02/23 11:16:05:390 Received FIX message Message dump: 3 06/02/23 11:16:05:390 Resetting FIX session intraday. 4 06/02/23 11:16:05:406 Sent FIX Message Message dump: 5 06/02/23 11:16:35:109 Sent FIX Message Message dump: 6 06/02/23 11:16:37:234 Received FIX message Message dump: 7 06/02/23 11:16:37:234 Sent FIX Message Message dump: 8 06/02/23 11:16:37:265 Inbound:, Outbound:, Bidirectional:*** 9 06/02/23 11:16:44:671 Received FIX message Message dump:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: File lines being treated as one.
by GrandFather (Saint) on Mar 03, 2006 at 10:01 UTC | |
|
Re^3: File lines being treated as one.
by minixman (Beadle) on Mar 03, 2006 at 10:03 UTC | |
by idle (Friar) on Mar 03, 2006 at 11:48 UTC |