I need to split xe-2/2/0 to (xe 2 2 0) . Here is my code and is not getting split
my @intf_list = ("xe-1/2/0", "xe-2/2/0"); foreach my $myint (@intf_list) { my @outputlist = split /-\d+/, $myint; print "$outputlist[1]\n"; }
Its not matching any pattern . Is there a way to split 2 different patterns using a single command
In reply to Splitting 2 different patterns by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |