Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: appending file name

by poj (Abbot)
on Jul 17, 2013 at 10:47 UTC ( #1044787=note: print w/replies, xml ) Need Help??


in reply to appending file name

Consider using a regular expression,
#!perl use strict; my $filename = 'ABcde.cSv'; (my $fff = $filename) =~ s/\.csv$/_header.txt/i; print "$filename -> $fff\n";
poj

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2019-06-17 02:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (76 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!