Editing
Portal:Linux
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Practical portability guidance === For old-style Unix/Linux portability, Perl is still one of the best bets after POSIX shell. But modern portability requires checking the target environment. A portable Perl script should: * use `#!/usr/bin/env perl` when appropriate; * document that Perl is required; * avoid assuming non-core modules are installed; * avoid assuming a full Perl installation when only `perl-base` exists; * declare package dependencies in RPM, DEB, APK, ebuild, or other packaging systems; * use local module installation for application dependencies; * avoid modifying system Perl with unmanaged CPAN installs; * test on minimal containers if the script is meant for containers; * package XS dependencies carefully. The old assumption was: โEvery Unix has Perl.โ The modern version is: โMany full Unix-like systems still have Perl, but minimal Linux environments may not.โ
Summary:
Please note that all contributions to Perl Guilds - Getting Medieval with Perl may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Perl Guilds - Getting Medieval with Perl:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Tools
What links here
Related changes
Page information