Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: appending file name

by Rahul6990 (Beadle)
on Jul 17, 2013 at 06: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 scrutinizing the Monastery: (3)
As of 2019-03-27 00:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How do you Carpe diem?





    Results (125 votes). Check out past polls.

    Notices?