Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 browsing the Monastery: (9)
As of 2020-12-01 19:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (20 votes). Check out past polls.

    Notices?