while (<FILE>)
{
print "$1\n" if $_ =~ m/(\d+)$/
}
this will print the last number on each line, if it is the last character on the line. for any more help, you're going to have to let us know how you decide that you want to print something. | [reply] [d/l] |
Thankx jeff, If I want, suppose, 32 different numbers. 1, 34 , 45, 62...and other random ones
Do I have to write all the numbers or is there any other easier way?.......
| [reply] |
If you already know the numbers that you want and you only want to print the numbers, why are you processing the file at all?
I guess I'm trying to say that I have absolutely no idea what you are trying to achieve here. Can you be more specific?
Nuance
| [reply] |