Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Question about making modules.

by dragonchild (Archbishop)
on Jul 07, 2008 at 00:49 UTC ( [id://695891]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Question about making modules.
in thread Question about making modules.

v-strings weren't supported prior to 5.6 and the support for them changed in 5.8 and they were removed in 5.10. So, do you want to use something with that kind of track record?

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Replies are listed 'Best First'.
Re^4: Question about making modules.
by linuxer (Curate) on Jul 07, 2008 at 09:45 UTC

    Ok, that clarifies, that I don't want to use v-strings. ;o)

    But there's some confusion left because of the version pragma.

    My Cygwin perl 5.10 and ActivePerl 5.8.8 both have that pragma available; but if I try to check the perldoc at http://perldoc.perl.org/ that pragma is undocumented?

    I got curious because I read the chapter about versioning in "Perl Best Practices" and it presented the version pragma... Some minutes later I read your answer not to use it.

      Perl doesn't have "pragmas". It has modules. Some module names are in lower-case. This is a community standard (not always followed!) to indicate that they affect something about the guts of how Perl works. Often, these modules will turn on a switch to enable (or disable) something with the Perl interpreter. Read the code of strict for more information about that.

      As for version, all it does is provide the qv() function. This looks like qq, qw, and qr, so it's considered ok to be a pragma. But, that's all it does. If you want to use it, that's whatever. But, it's not as clean as you might like.


      My criteria for good software:
      1. Does it work?
      2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

        I don't wanna start a discussion about the term "pragma" here (if perl has some or not or whatever). So I just thank you for your reply. It was clarifying enough for me.

        Thanks.

Log In?
Username:
Password:

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

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

    No recent polls found