Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: $0 in perl pod, not expanding to script name

by tobyink (Canon)
on Jul 16, 2018 at 08:26 UTC ( [id://1218540]=note: print w/replies, xml ) Need Help??


in reply to $0 in perl pod, not expanding to script name

Pod is a markup language, not a programming language. While markup languages can sometimes have things like macros and variables in them, pod doesn't. It's super simple. So, long story short, pod doesn't have what you want.

However, you could use a templating module to output your pod from a template, and use that to do variable substitution.

  • Comment on Re: $0 in perl pod, not expanding to script name

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-26 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found