Im trying to write a Perl script that reads a text file containing telephone numbers in the form 00000-000000 (eg 05234-927951)
and then copies the numbers to a seperate text file. can anyone offer any advice, how should i detect the numbers?
2006-11-14
23:37:46
·
4 answers
·
asked by
karljj1
4
in
Computers & Internet
➔ Programming & Design
The file would contain various text as well, such as names, addresses etc. i just want to extract the numbers which will all be in that form, 5 numbers, - 6 numbers = 00000-000000
2006-11-14
23:53:08 ·
update #1
also if possible id like to write some details to the text file such as:
total numbers found,
the number of times each phone number was found, incase the same number is repeated
total number of unique telephone numbers found in the file and
2006-11-15
00:58:16 ·
update #2