Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Import Constants From File to Templates?

by kcott (Archbishop)
on Dec 04, 2021 at 16:48 UTC ( [id://11139389]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Sam::Constants;
    
    ...
    }
    
    1;
    
  2. or download this
    $ alias perl_sam_const
    alias perl_sam_const='perl -I/home/ken/tmp/pm_11139384/lib -Mstrict -M
    +warnings -E'
    
  3. or download this
    # import a single constant
    $ perl_sam_const 'use Sam::Constants qw{ABC_2}; say ABC_2'
    ...
    1
    5
    9
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-25 19:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found