use warnings; use strict; use File::Basename qw(basename); my $text = "../files/jack/2012/derpone.pdf"; $text = basename($text); print "$text\n"; __END__ derpone.pdf
Note that .. in your regex means any character, not just dots.
In reply to Re: Why can't I use s///
by toolic
in thread Why can't I use s///
by njack
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |