For the Perl 5 project, the "standard distribution" is the "Core" distribution. As toolic pointed out, the Core does not include any XML modules.
However, there are also packages that may include additional modules beyond what is in the Core. For example, the Perl package for Debian Linux includes modules needed by the Debian Linux distribution. For MS Windows, StrawberryPerl.com and Active Perl both have whatever extra modules their respective package maintainers thought would be useful to include. Exactly which extra modules may change from one package release to the next.
Why do you want to not to install modules from CPAN?
Update: Changed domain of StrawberryPerl (it's .com not .org).
| [reply] |
company policy (I know, I know)
| [reply] |
Weird they would let you install Perl but not additional modules.
It it is possible to repackage Perl yourself. A few years ago, I did that with StrawberryPerl.com (note .com not .org).
As I recall, I used the "PortableZIP edition". I unzipped it, ran the post-unzip scripts, "installed" needed CPAN modules, then zipped it into a new zip file.
It is also possible to create an MSI installer if you need to. I used nsis.sourceforge.net to create one. Unfortunately, I don't remember the details, but it wasn't hard to do.
I've never created an install package for Linux despite Linux being my primary platform, so I can't help you with that.
| [reply] |
To expand on RonW's suggestion, here's one thought. Put portable Strawberry Perl on a USB drive stick. Use the portable Perl to install CPAN::Mini. Then make your own miniCPAN mirror on the same USB drive stick. Since Strawberry Perl already comes with App::cpanminus installed, it's then super easy to use cpanm to install any additional needed modules from your miniCPAN.
Going this route, you never "install" anything on your system. You run Perl from your USB stick. Or you can copy the portable Strawberry Perl from the USB stick to your system so that you don't have to rely on the USB stick all of the time.
And if you're trying to distribute something to coworkers, you can install PAR::Packer and then use pp to bundle your Perl script into a stand-alone executable. That way you won't have to worry about maintenance of Perl environements on everyone else's system. (Maintenance such as which version of Perl is installed, what modules are installed, what version of modules are installed, etc.)
| [reply] |
The Perl distribution (see http://www.cpan.org/ports/) that you are using might include XML::Simple with their version of Perl 5.18, but I don't think 5.18 has any XML modules in its core module list.
Maybe there's a better of way of checking, but I just looked at the documentation on http://www.perl.org/ for the list of core modules beginning with the letter X for Perl versions 5.18.0, 5.18.1 and 5.18.2.
| [reply] |