in reply to Re^6: Can not use JSON module
in thread Can not use JSON module

"Thanks..."

My pleasure. Next step: Go over that bridge named "module" - as some fellow monks mentioned already.

Like this, less or more:

package YourModule; use strict; use warnings; use Exporter qw(import); our ( $VERSION, @EXPORT_OK ); $VERSION = 1.00; @EXPORT_OK = qw(from_json); sub from_json { # stuff... } 1;

See also Re: How to parse the logs in a generic manner

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»

Furthermore I consider that Donald Trump must be impeached as soon as possible

Replies are listed 'Best First'.
Re^8: Can not use JSON module
by tejD (Novice) on Jun 07, 2017 at 11:41 UTC
    Hi, Done. Thank you everyone for help. :D