On Mon, Feb 18, 2002 at 01:30:01PM +0100, Jorge Goncalvez wrote:
>> Hi, I need some help to have a regexp which could replace : by - in this
code:
> my $mac=$_Globals{MAC_ADDRESS};
$mac=~s/://; # You will need to add this to remove the leading colon
> $mac=~s/:/-/g; # Here's the RE you were asking for
> my $cmd="arp -s $ipadress $mac";
> system($cmd);
>on a unix system, man perlre is your friend...
>--
>Johannes Franken
>Professional unix/network development
>mailto:[EMAIL PROTECTED]
>http://www.jfranken.de/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]