#!/usr/bin/perl -- use strict; use warnings; use Path::Class; @ARGV or @ARGV = ( qw' y:/home/lib/directory/book y:/home/lib/directory/book_manager y:/home/lib/directory/piano_book ' ); print file($_)->basename,"\n" for @ARGV; __END__ __END__ book book_manager piano_book
In reply to Re: how to remove everything before last slash in perl?
by Anonymous Monk
in thread how to remove everything before last slash in perl?
by mipatel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |