Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Removing dots

by mattk (Pilgrim)
on May 08, 2005 at 23:15 UTC ( #455052=note: print w/replies, xml ) Need Help??


in reply to Removing dots

Just because I felt like doing something different than an RE:
$origfile = shift; @chunks = split(/\./, $origfile); $ext = pop @chunks; $filename = join("", @chunks, ".$ext"); rename $origfile, $filename;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://455052]
help
Chatterbox?
[Eily]: could be worse, you might have ruined your tea with the content of the keyboard
[holli]: if you didnt you should be fine
LanX .oO( holli needs standards which are standardized!!)
[holli]: do i?
[holli]: oh for the keyboard

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2017-11-21 13:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (302 votes). Check out past polls.

    Notices?