in reply to Best way to do this
#!/usr/bin/perl use warnings; use strict; while (my $line = <>) { my $last = ( split m{/}, $line )[-1]; print "$last" if $last =~ /^[0-9]+$/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Best way to do this
by PetreAdi (Sexton) on Sep 29, 2014 at 08:14 UTC |