Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Writing portable code

by daxim (Chaplain)
on Mar 08, 2013 at 09:43 UTC ( #1022366=note: print w/ replies, xml ) Need Help??


in reply to Writing portable code

What do you hope to gain by sticking to having your code in just one file?


Comment on Re: Writing portable code
Re^2: Writing portable code
by McA (Curate) on Mar 08, 2013 at 09:49 UTC

    ...simple distribution of the script if you don't build full blown packages. Only a perl script.pl is needed when the script uses only core functionality. That is simple and lightweight. Am I wrong?

    Best regards
    McA

      This *could* be a reason in general, but is not so important in my particular case.

      If the "platform dependent" subs would form a logical unit, which deserves being factored out to a module, this is what I would do.

      -- 
      Ronald Fischer <ynnor@mm.st>
Re^2: Writing portable code
by rovf (Priest) on Mar 08, 2013 at 09:53 UTC

    Since the variations between Windows and Linux are logically part of the module, where they are used, it feels artificial to move them to a different module. That's why I would prefer to keep them together, if (only if!) I find an equally well solution which allows me to do so.

    -- 
    Ronald Fischer <ynnor@mm.st>

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2014-10-22 02:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (112 votes), past polls