devlele has asked for the wisdom of the Perl Monks concerning the following question:
" regular expression but it is matching "/lib/XSLoader.pm". I want only filename. How should I go about it ?if ($_ =~ /\/(.*$)/) { print "$1\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pattern matching question
by philcrow (Priest) on Dec 28, 2005 at 20:52 UTC | |
|
Re: pattern matching question
by TedPride (Priest) on Dec 28, 2005 at 20:54 UTC | |
|
Re: pattern matching question
by ChrisR (Hermit) on Dec 28, 2005 at 21:02 UTC | |
by smokemachine (Hermit) on Dec 28, 2005 at 22:46 UTC | |
|
Re: pattern matching question
by ysth (Canon) on Dec 29, 2005 at 05:43 UTC |