in reply to Installation of perl

I'm not sure anyone can give you a good answer based on the information you've provided. Do you get an error message? If so, what is the exact message? How does your Perl program expect to receive arguments? Can you show us the code? What arguments does it receive? What language is the snippet you've provided? (It looks like Perl to me, but I don't understand why you'd provide that in the context of your question. If it is Perl, where's your error checking?)

Replies are listed 'Best First'.
Re^2: Installation of perl
by prashanth_hsn (Initiate) on Aug 09, 2008 at 18:39 UTC
    1. The (error) messages i get are warnings, like "use of uninitialised variable at some place" 2. I except my .pl file to be called by the TCL file which is my GUI. So all the inputs from the user are collected by the .tcl file and then passed on to the perl file. To do that I created a perl environment in Tcl and used the open command to call my .pl file.
    if(open(my_perl,"|perl_file.pl $variable1 $variable2")) { #do some thing } else { #report the error or/and Log the Error in Error log }
    I provided this code snippet so as to confirm that the way with which I'm passing parameters from tcl to perl were correct.
      The (error) messages i get are warnings, like "use of uninitialised variable at some place"

      That's not the exact error message. Don't give a vague description of what it's like. Tell us exactly what it is. Then show the code around it.

      To do that I created a perl environment in Tcl and used the open command to call my .pl file.

      That sounds reasonable, except that the code that you've posted isn't (as far as I can tell) valid Tcl code. I expect something closer to:

      set my_perl [open "|perl perl_file.pl $variable1 $variable2"] ...
      I provided this code snippet so as to confirm that the way with which I'm passing parameters from tcl to perl were correct.

      We'd have to see a lot more code, including the Perl program -- at least how it expects to access incoming parameters.

        Finally i found the bug.. I had committed a mistake while associating the .pl files with the perl.exe I had used the following command before assoc .pl PERLFILE ftype PERLFILE C:\perl\bin\perl.exe "%1" So the problem was that, the perl.exe would always get only the file name as the argument (%1) and all other arguments were ignored. So now i've changed it to assoc .pl PERLFILE ftype PERLFILE C:\perl\bin\perl.exe "%1" %* So now thw %* accepts all the arguments passed to the perl.exe I thank you for your efforts in helping me in my problems.