compiling Perl code

B

-bill

hi all,
I know little about Perl, so I ask the following question. when you
compile Perl code, can a PDB(symbols file) be created the way you can
within MSVS IDE for VB, C/C++ ?
thanx
-bill
 
B

Bart Lateur

-bill said:
I know little about Perl, so I ask the following question. when you
compile Perl code, can a PDB(symbols file) be created the way you can
within MSVS IDE for VB, C/C++ ?

"Compile"? Eh...

Anyway, look at the module B::Xref. You invoke it as

perl -MO=Xref yourscript.pl

optionally with options separated with commas, like

perl -MO=Xref,-r,-oXref.out.txt yourscript.pl

See B::Xref for the docs.
 
B

-bill

Bart Lateur said:
"Compile"? Eh...

Anyway, look at the module B::Xref. You invoke it as

perl -MO=Xref yourscript.pl

optionally with options separated with commas, like

perl -MO=Xref,-r,-oXref.out.txt yourscript.pl

See B::Xref for the docs.


hey Bart,
thanx for the info. Not sure if I get it....in a simple explanation ,
can PDB's be created where I can use the symbols files to help me
debug a program?
 
B

Bart Lateur

-bill said:
can PDB's be created where I can use the symbols files to help me
debug a program?

Heh?

You don't need a symbols file to debug a program. Just start up your
script with the -d option specified. For info, check the perldebug POD
that comes with perl. Just run

perldoc perldebug

at the command line. Activeperl for Windows likely comes with this
document converted to html, and you can find copies for the various
versions of perl at <http://www.perldoc.com>, for example here:

<http://www.perldoc.com/perl5.8.0/pod/perldebug.html>

While you're at it, also check out

perldoc perldebtut
 
J

Joe Smith

hey Bart,
thanx for the info. Not sure if I get it....in a simple explanation ,

The answer was correct, but not appropriate to what you want.
can PDB's be created where I can use the symbols files to help me
debug a program?

1) Perl code is interpreted, not compiled.
2) Perl has a very powerful built-in debugger.

C:\Work> perl -d program.pl arg1 arg2

-Joe
 
W

William Peckham

Joe Smith said:
The answer was correct, but not appropriate to what you want.


1) Perl code is interpreted, not compiled.
2) Perl has a very powerful built-in debugger.

C:\Work> perl -d program.pl arg1 arg2

-Joe
Joe,
There are actually a couple of ways that PERL code can be said to be
'compiled' rather than interpreted.
1. The distribution kits generally contain the C translater/compiler (it
converst to C and calls GCC to compile) can sometimes be made to work. It
is very experimental, and I have had problems with it forever.
2. The perl2exe compiler form IndigoStar at
<http://www.indigostar.com/perl2exe.htm> has a good reputation is some
circles. I have not tried it myself.

-bill
While his detail was questionable, Joe makes a good point. Have you
verified your PERL source using interpreted execution prior to attempting to
compile? Were there any errors or warnings either running interpreted or
when you compiled?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top