in reply to Re: opening perl script by clicking on it
in thread opening perl script by clicking on it

#!/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;

Replies are listed 'Best First'.
Re^3: opening perl script by clicking on it
by davido (Cardinal) on Jul 01, 2013 at 06:34 UTC

    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;

        Do you still get the error if you run the code you posted earlier, in which use Text::CSV; appears on line 9 instead? If not, how is the code you posted above relevant? If yes, you didn't install Text::CSV correctly.


        Dave

      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 .