Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 chanting in the Monastery: (4)
As of 2020-03-29 22:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    To "Disagree to disagree" means to:









    Results (171 votes). Check out past polls.

    Notices?