Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Use scalars to define a filename

by Ovid (Cardinal)
on Oct 17, 2011 at 14:13 UTC ( [id://931935]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $filename = "fileLocn/$var1_$var2.txt";
    
  2. or download this
    # escape the underscore
    my $fileName = "fileLocn/$var1\_$var2.txt";
    
    # or wrap the identifier in curly braces
    my $fileName = "fileLocn/${var1}_$var2.txt";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2024-03-19 06:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found