Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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
Replies are listed 'Best First'.
Re^2: Writing portable code
by McA (Priest) 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 pondering the Monastery: (6)
As of 2015-07-29 02:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls