http://www.perlmonks.org?node_id=1065427


in reply to Re^2: Difference in retrieving values from a varchar2 column and number column from DB
in thread Difference in retrieving values from a varchar2 column and number column from DB

What I would try:

Run the script from the command line.

Run a simple script like this:

my $obj = new MyPackage::NetAddr::IP('10.10.10.10', '255.255.255.255') +;

with an IP address from your sample.

Add a print statement to the sub new and re-run the simple script.

  • Comment on Re^3: Difference in retrieving values from a varchar2 column and number column from DB
  • Select or Download Code

Replies are listed 'Best First'.
Re^4: Difference in retrieving values from a varchar2 column and number column from DB
by Arun Kumar (Novice) on Dec 03, 2013 at 17:34 UTC

    Sorry, I am a newbie for perl. I do not know how to access packages from command line scripts. Could you please give me an idea to do this.

      What I wanted to say is to run the script directly, rather than from cron. Like perl script.pl on the command line.