maybe you can do something like:

($text) = ($text =~ /([0-9]+)/);

Before printing the text.

> -----Original Message-----
> From: sudhindra k s [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 02, 2004 10:52 AM
> To: [EMAIL PROTECTED]
> Subject: Help on output formatting
> 
> 
>   
> Hi
> 
> I have a script which the following output:
> 
> "         abc 123456   xyz        
> 
>                         "  
> 
> Now as you can see apart from the number "123456" there are a 
> lot of blank spaces and some aplha characters as well. Now i 
> want the output to be only "123456" without the white spaces, 
> blank lines and characters.
> 
> How do i acheive this?
> 
> Thanks in advance.
> 
> Regards
> Sudhindra
> 
> 
> 
> 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to