perlcc bug?

It seams, that perlcc doesn't work, when you specify absolute path for output file

Code:
$ perlcc -B playd.pl -o `pwd`/test                                
Use of uninitialized value in string eq at /usr/local/bin/perlcc line 394.
Use of uninitialized value in -d at /usr/local/bin/perlcc line 424.
Use of uninitialized value in concatenation (.) or string at /usr/local/bin/perlcc line 194.
/usr/local/bin/perlcc: playd.pl did not compile:
open : No such file or directory at /usr/local/lib/perl5/5.8.9/mach/B/Bytecode.pm line 737.
 CHECK failed--call queue aborted.

I think problem is at line about 160, but i'm not perl expert, and that syntax confuses me
It works with relative path:
$ perlcc -B playd.pl -o ./test
$ perlcc -B playd.pl -o test

Would anyone care to report this with perlbug...
I don't want to use it because I don't have valid domain name for my PC....
 
The `pwd` might be the cause. Have you tried it with a full path like /home/username/test?
 
Yes.... I did try that many times....
I just used pwd because i was lazy to type full path....
pwd works fine....


I think problem is at line about 160, but i'm not perl expert, and that syntax confuses me
 
it is expressly written as though:

Code:
Use of uninitialized value in string eq at /usr/local/bin/perlcc line 394.
Use of uninitialized value in -d at /usr/local/bin/perlcc line 424.
Use of uninitialized value in concatenation (.) or string at /usr/local/bin/perlcc line 194.

Code:
open : No such file or directory at /usr/local/lib/perl5/5.8.9/mach/B/Bytecode.pm line 737.

it is desirable to look source codes!

and interestingly, why do you do it?
 
[The above script, (link, that i provided) is my own]
It compiles if outputfile name doesn't contain absolute path....
 
What version of perl do you have installed?

Line 394 in my perlcc is a "my $file = shift;" which shouldn't pose any problems and certainly not the error you are getting.

Edit: Scratch that.. Confusing less and vi commands here :r

It's a if ($Input eq $output) statement. So one of those appear to be empty.
 
I know..., I created this tread to point out bug in perlcc, and hoped someone would report it with perlbun.... I don't have valid domain, and my report could be filtered as spam.
 
Back
Top