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 (Abbot) 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