Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: appending file name

by Rahul6990 (Beadle)
on Jul 17, 2013 at 10:09 UTC ( #1044780=note: print w/replies, xml ) Need Help??


in reply to appending file name

Change your code to:
my $filename = "rahul.abc"; chomp $filename; my @filenam = split ('\.', $filename); my $fi; my $fff=$filenam[0]."_header".".txt"; print "\n:$fff:\n"


More on string concatenation

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2019-10-23 02:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?