For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > June 2006 > Re: file script and cmd script difference (close)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: file script and cmd script difference (close)
Joseph

2006-06-29, 3:57 am


""Jeff Peng"" <peng@dig-tech.com> wrote in message
news:BAY15-F4F01CF35D72F07D076247F47C0@phx.gbl...
>
>
>
> You maybe would check your scripts carefully at first.
> Here should be:
> my($addr,$mac) = (split(/\s+/))[0,2];
>
> You have lost the '' before 's+' in your regex.
>
>


ouch... for how many times i had checked it, what a hard learned lesson.
thanks.

/joseph


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com