Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Reading from/writing to files with variables substitutions

by Qukz (Novice)
on Mar 28, 2013 at 07:26 UTC ( [id://1025875]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Hello $FIRST_NAME. 
    
    I'm writing on behalf of $COMPANY...
    
  2. or download this
    Hello James. 
    
    I'm writing on behalf of SoftLayer...
    
  3. or download this
    my $outfile = "new.txt";
    
    ...
    print OUTFILE "Hello $FIRST_NAME.\n";
    print OUTFILE "\n";
    print OUTFILE "I'm writing on behalf of $COMPANY...";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-26 00:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found