in reply to opening perl script by clicking on it

Show some code so that we know what you're doing.


Dave

  • Comment on Re: opening perl script by clicking on it

Replies are listed 'Best First'.
Re^2: opening perl script by clicking on it
by Anonymous Monk on Jul 01, 2013 at 06:31 UTC
    #!/bin/perl -w use strict; use warnings; my @array_A; # array initialization as array_X where X corresponds to +column of csv my @array_B; use Text::CSV; print " Hello please enter the name of your csv file "; print "\n"; my $filename = <>; chomp $filename; @array= data ($filename,0); # funcn call ...

    the problem is at this line use Text::CSV;

      And what do you see when you open a command prompt and execute the script within it, so that when the script terminates the window doesn't close? (I assume you'll probably see an error message, which we will need to know about.)


      Dave

        error is " Begin failed --- compilation aborted path of the file line 90 " my line 90 is use Text::CSV;
        ok I am using windows xp , so please tell me how should I install this cpan . it works fine in padre , but i want to make it like an utility , click and execute .