in reply to Perl = Greek to me
This is the first step in something much bigger that's probably way more than i can chew. Thank you for all the replies so far.
Here are a few lines of data:
2011-12-21 00:24:20.422318%%0f-1f-15%%TRF%% Received event <lmevtPORT_ +DIGIT_PATTERN_MATCH> cc<lmccSTATE_CHANGED> R<otLIF_PORT:0x4E06016> D< +otPARTY_OBJECT:0x80B4D> T<otUNKNOWN:0x0> SRC<otLIF_PORT:0x4E06016> Ad +dr<01-15-0c> 2011-12-21 00:24:20.422888%%0f-1f-16%%TRF%% Received event <paevDIGIT_ +PATTERN_RECEIVED> cc<0x0> R<otPARTY_OBJECT:0x80B4D> D<otCC_PARTY_OBJE +CT:0x31A9A> T<otUNKNOWN:0x0> SRC<otPARTY_OBJECT:0x80B4D> Addr 2011-12-21 00:24:20.423024%%0f-1f-16%%DB1%% ccParty<0x31A9A> Port<1-14 +-7-23> DTMF<4> 2011-12-21 00:24:20.423138%%0f-1f-16%%DB2%% ccParty<0x31A9A> next CF<2 +1> 2011-12-21 00:24:20.423229%%0f-1f-16%%DB2%% ccParty<0x31A9A> CF<21> I< +0>
my $slurp; local $/ = undef; open my $textfile, '<', 'filename.txt' or die $!; $slurp = <$textfile>; close $textfile; } while($line = m/ccParty<(.+)> DTMF<(.+)>/) print "$line" if $line =~ /_NN/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl = Greek to me
by Not_a_Number (Prior) on Dec 22, 2011 at 20:56 UTC | |
|
Re^2: Perl = Greek to me
by JavaFan (Canon) on Dec 22, 2011 at 20:58 UTC | |
|
Re^2: Perl = Greek to me
by ww (Archbishop) on Dec 22, 2011 at 22:08 UTC | |
|
Re^2: Perl = Greek to me
by aaron_baugher (Curate) on Dec 22, 2011 at 23:48 UTC | |
by smolikmd (Initiate) on Dec 23, 2011 at 18:12 UTC | |
by runrig (Abbot) on Dec 23, 2011 at 18:24 UTC | |
by smolikmd (Initiate) on Dec 28, 2011 at 15:14 UTC | |
by BrowserUk (Patriarch) on Dec 23, 2011 at 18:23 UTC |