Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

How to interpolate CONSTANTS in Here docs?

by CoVAX (Beadle)
on Feb 11, 2015 at 21:39 UTC ( #1116399=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use constant {
    OUT_DIR      => 'out',
    OUT_FIELDSEP => '=',
    ...
    VAL_MIN      => 15,
    VAL_MAX      => 3600,
    };
    
  2. or download this
    print <<USAGE;
    
    This program does this and that with the OUT_DIR. The filename is
    ...
    between VAL_MIN and VAL_MAX.
    
    USAGE
    
  3. or download this
    my $out_dir = OUT_DIR;
    my $out_fs  = OUT_FIELDSEP;
    my $out_fn  = OUT_FILENAME;
    ...
    between $valmin and $valmax.
    
    USAGE
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2020-10-29 22:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (274 votes). Check out past polls.

    Notices?