Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Search a string from beginning or end

by NodeReaper (Curate)
on Dec 28, 2001 at 02:59 UTC ( #134760=perlquestion: print w/ replies, xml ) Need Help??
NodeReaper has asked for the wisdom of the Perl Monks concerning the following question:


Reason: (grinder) Extract string from rear of string restated, as initial node was not approved (my bad).

For more information on this node visit: this

Comment on Search a string from beginning or end
Re: Search a string from beginning or end
by dmmiller2k (Chaplain) on Dec 28, 2001 at 03:22 UTC
Re: Search a string from beginning or end
by chipmunk (Parson) on Dec 28, 2001 at 07:08 UTC
    Instead of basename, you could use fileparse, which is also part of the File::Basename module. For example: ($base,$path,$suffix) = fileparse($file, '\.[^.]*');

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://134760]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2014-12-26 01:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (163 votes), past polls