in reply to Re^2: Formatting an array
in thread Formatting an array
Assuming that all your path components are separated by "/", then you would simply use split again, and take the final component(s):
my @router_path_components = split qr{/}, $s_flds[0]; my $last_chunk = $router_path_components[-1];
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Formatting an array
by bartrad (Beadle) on Feb 09, 2018 at 10:28 UTC |