[OZAPRS] APRS PERL SPLIT Help needed
Andrew Rich
vk4tec at hotmail.com
Wed Sep 24 23:25:28 EST 2003
Gents,
I am feeling very dumb today I need some help with this PERL code.
STRING = CALLSIGN>DEST,DIGI,DIGI,DIGI:PAYLOAD
I am trying to get: CALLSIGN, DEST, (digis), PAYLOAD
Code:-
@callsign = split />/;
@payload = split/:/;
@dest = split /[>,]/;
@digis = < this is the bit i am having probs with >
I know I have to split on ">" then split on ":" then remove first member.
example
A>B,C,D,E,F:G
split ">"
B,C,D,E,F:G
split ":"
B,C,D,E,F
chomp a value
C,D,E,F (which represents the digis part of the APRS packet )
Cheers
_________________________________________________________________
Protect your inbox from harmful viruses with new ninemsn Premium. Click
here
http://ninemsn.com.au/premium/landing.asp
_______________________________________________
ozaprs mailing list
ozaprs at marconi.ics.mq.edu.au
http://marconi.ics.mq.edu.au/cgi-bin/mailman/listinfo/ozaprs
More information about the Ozaprs
mailing list