< Home - < Back

perl-JSON-MaybeXS


Information about the package, perl-JSON-MaybeXS, which is shipped with common Linux distributions. The perl-JSON-MaybeXS package is designed for, Use Cpanel::JSON::XS with a fallback to JSON::XS and JSON::PP.


Package Name:

perl-JSON-MaybeXS

Summary:

Use Cpanel::JSON::XS with a fallback to JSON::XS and JSON::PP

Description:

This module first checks to see if either Cpanel::JSON::XS or JSON::XS is already loaded, in which case it uses that module. Otherwise it tries to load Cpanel::JSON::XS, then JSON::XS, then JSON::PP in order, and either uses the first module it finds or throws an error. It then exports the "encode_json" and "decode_json" functions from the loaded module, along with a "JSON" constant that returns the class name for calling "new" on. If you're writing fresh code rather than replacing JSON.pm usage, you might want to pass options as constructor args rather than calling mutators, so we provide our own "new" method that supports that.

Architecture:

noarch

Version:

1.003005

Release:

1.el6

Size:

16 k

Repository:

epel

From Repository:

Licence:

GPL+ or Artistic



Handy Yum Commands for perl-JSON-MaybeXS


Control the perl-JSON-MaybeXS package with the following handy commands outlined below.


Command

Description of Command

yum install perl-JSON-MaybeXS

This command will install perl-JSON-MaybeXS on the server.

yum remove perl-JSON-MaybeXS

This command will un-install perl-JSON-MaybeXS on the server. When you run this command, you will be asked if you are sure that you want to remove perl-JSON-MaybeXS, so you have to manually confirm that you want to do this.

yum -y remove perl-JSON-MaybeXS

This command will un-install perl-JSON-MaybeXS on the server. When you run this command with th e -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove perl-JSON-MaybeXS when using the -y flag.

yum update perl-JSON-MaybeXS

This command will update perl-JSON-MaybeXS to the latest version. When you run this command, you will be asked if you are sure that you want to remove perl-JSON-MaybeXS, so you have to manually confirm that you want to do this.

yum -y update perl-JSON-MaybeXS

This command will update perl-JSON-MaybeXS to the latest version. When you run this command with the -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove perl-JSON-MaybeXS when using the -y flag.

yum info perl-JSON-MaybeXS

This command will show you core information about the perl-JSON-MaybeXS package.

yum deplist perl-JSON-MaybeXS

This command will show you the dependencies for perl-JSON-MaybeXS. Thankfully, when using Yum, if dependencies are required, these are also installed at the same time so you don't have to worry too much about that.

yum check-update perl-JSON-MaybeXS

This command will check if there is an update waiting on perl-JSON-MaybeXS. When you run this command this will return nothing if there is nothing to update, or, will return the package name if the package is due to be updated.