Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: best XML parser in 5.18

by fionbarr (Friar)
on May 21, 2015 at 19:13 UTC ( [id://1127386]=note: print w/replies, xml ) Need Help??


in reply to Re: best XML parser in 5.18
in thread best XML parser in 5.18

'standard distribution' means comes with 5.18; does not require installing from CPAN. XML::Simple comes with 5.18 also.

Replies are listed 'Best First'.
Re^3: best XML parser in 5.18
by RonW (Parson) on May 21, 2015 at 20:20 UTC

    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).

      company policy (I know, I know)

        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.

        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.)

Re^3: best XML parser in 5.18
by dasgar (Priest) on May 21, 2015 at 19:38 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-18 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found