On Thu, 2004-05-06 at 08:15, jack jack wrote:
> Hi All,
> 
> I have an output from a cammand
> I have to split and get only  hostname in below output
> 

Why split, when you can match? :-)

> * av_test             \\hostname\views\av_test.vws

/\\\\(.*?)\\/

and now the variable $1 holds the hostname :-)

HTH :-)

jac
-- 
Josà Alves de Castro <[EMAIL PROTECTED]>
Telbit - Tecnologias de InformaÃÃo


-- 
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