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

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.

Replies are listed 'Best First'.
Re^4: Installation of perl
by prashanth_hsn (Initiate) on Aug 11, 2008 at 15:48 UTC
    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.