in reply to reg ex help
If you were reading from a stream you could use the input record separator:
local $/ = " "; while(<DATA>) { next unless $. == 15; # 14th number is 15th element with 0000: f +irst print; last; } __DATA__ 0000: 30 44 02 01 01 04 06 70 75 62 6C 69 63 A7 37 02 0D.....public.7
cheers
tachyon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: reg ex help
by ishnid (Monk) on Apr 15, 2004 at 10:43 UTC | |
by markd (Acolyte) on Apr 15, 2004 at 11:26 UTC | |
by tachyon (Chancellor) on Apr 15, 2004 at 11:27 UTC | |
by ishnid (Monk) on Apr 15, 2004 at 11:43 UTC | |
by tachyon (Chancellor) on Apr 15, 2004 at 12:15 UTC | |
|
Re: Re: reg ex help
by markd (Acolyte) on Apr 15, 2004 at 10:40 UTC |