in reply to Re: Installation of perl
in thread Installation of perl

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.

Replies are listed 'Best First'.
Re^3: Installation of perl
by chromatic (Archbishop) on Aug 09, 2008 at 20:34 UTC
    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.