Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: $VERSION in module files

by syphilis (Bishop)
on Mar 27, 2020 at 12:29 UTC ( #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 (Parson) 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
Node Status?
node history
Node Type: note [id://11114717]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2020-06-06 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (41 votes). Check out past polls.

    Notices?