in reply to Re: How to display the .pl process in command line
in thread How to display the .pl process in command line

it failed.. I download the IO::File at cpan then when i run the command it said that Can't locate object method "new" via package "IP::File (perhaps you forgot to load "IP::File"?) the i add use IP::File then it said that can' locate IP/File.pm then I checked cpan for download there's no IP::File.. did do it incorrectly? Thanks
  • Comment on Re^2: How to display the .pl process in command line

Replies are listed 'Best First'.
Re^3: How to display the .pl process in command line
by bms (Monk) on Mar 27, 2012 at 09:59 UTC
    IO::File and IO::Tee. Not sure what IP::File is, looks like a typo. You may have to 'use IO::File'. It is a core module.
      Hmm how about this? I want it to make it simpler... After running the script (the one I posted above) it will display "Ok" or if it's failed it will display an error message.. I'm reading regarding STDIN, STDOUT and STDERR.. but I'm having hard time understanding... Any ideas?

      Hmm how about this? I want it to make it simpler... After running the script (the one I posted above) it will display "Ok" or if it's failed it will display an error message.. I'm reading regarding STDIN, STDOUT and STDERR.. but I'm having hard time understanding... Any ideas?

        Yup

        # ... Code ... print "Ok\n"; # ... Code ... print "Error: <insert error message>\n";