Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: $VERSION in module files

by syphilis (Archbishop)
on Mar 27, 2020 at 12:29 UTC ( [id://11114717]=note: print w/replies, xml ) Need Help??


in reply to $VERSION in module files

Ummm ... what's with the "pod Version strings" ?
I've never assigned versions to pod.
I've only ever assigned version numbers in the .pm files.
Have I missed something ? (I'm not assuming that the correct answer is not "yes".)

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: $VERSION in module files
by bliako (Monsignor) on Mar 27, 2020 at 12:44 UTC

    I thought I was cargo culting but just confirmed that module-starter does it (and use it to start a module):

    > module-starter --module=Foo::Bar,Foo::Bat --author="XYZ" --email=abc +@xyz.com > cat Foo-Bar/lib/Foo/Bar.pm ... =head1 NAME Foo::Bar - The great new Foo::Bar! =head1 VERSION Version 0.01 =cut our $VERSION = '0.01';
      I thought I was cargo culting but just confirmed that module-starter does it (and use it to start a module)

      Yeah, fair enough ... but that sort of begs 2 additional questions:
      1) What happens if you don't put a =head1 VERSION section in your pod;
      2) Why has the absence of such a pod heading in any of my modules not caused me any problems - not to mention unbearable embarrassment and humiliation ?

      Sorry ... I'm being a bit of a halfsmartarse in posing it that way.
      Nothing against you, bliako, I'm really just wondering if there's some point in going to such lengths.

      Cheers,
      Rob

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-19 07:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found