Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Delete "/" in a stringby Loops (Curate) |
on Oct 23, 2014 at 03:22 UTC ( [id://1104730]=note: print w/replies, xml ) | Need Help?? |
Hi WTem, welcome to the monastery. As with all things Perl, there is more than one way to do this. As long as you have at least Perl 5.14 (which added the /r regex modifier), this will work too and wont touch the original $interface value: will print: 192.168.1.1--POS100.txt
In Section
Seekers of Perl Wisdom
|
|