my $ip_wan = new NetAddr::IP("10.20.20.1/24"); my $ip_addr = $ip_wan->addr(); for (@line) { s/<IP_WAN>/$ip_addr/; }
In reply to Re: Perl ignore arrow object operator in search/replace
by pajout
in thread Perl ignore arrow object operator in search/replace
by fouinix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |