Pagoda wrote: > I tried 5.8.3, 5.8.2, 5.8.0, 5.6.1
i tried 5.8.0 in a linux box and there is no error. are you using a different os? > >> Pagoda wrote: >> >> > problem about compiler >> > >> > Below is the code: >> > #! /usr/bin/perl >> > use Cwd qw/cwd abs_path/; >> > print cwd, "\n"; >> > are those the only lines of your script? >> > >> > I compiled my code: >> > $perlcc -o hello hello.pl >> > >> >> i compiled the above without any problem >> >> > the following infor were printed to stdout: >> > Note (probably harmless): No library found for -lposix >> > pccslkmZ.c: In function `perl_init_aaaa': >> > pccslkmZ.c:15202: warning: decimal constant is so large that it is >> > unsigned >> > >> > and I ran the binary: >> > $ hello >> > >> > the following infor were printed to stdout: >> > Undefined subroutine &main:: called at hello.pl line 4. where is line 4? i can reproduce your error message with the following simple script: #!/usr/bin/perl use Cwd qw/cwd abs_path/; print cwd,"\n"; main(); __END__ [panda]# perlcc -o hello hello.pl [panda]# ./hello /root/perl/Tmp Undefined subroutine &main::main called at hello.pl line 4. i didn't get any wanrings... david -- s$s*$+/<tgmecJ"ntgR"tgjvqpC"vuwL$;$;=qq$ \x24\x5f\x3d\x72\x65\x76\x65\x72\x73\x65 \x24\x5f\x3b\x73\x2f\x2e\x2f\x63\x68\x72 \x28\x6f\x72\x64\x28\x24\x26\x29\x2d\x32 \x29\x2f\x67\x65\x3b\x70\x72\x69\x6e\x74 \x22\x24\x5f\x5c\x6e\x22\x3b\x3b$;eval$; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>