At 6:46 PM -0500 12/18/06, John E. Malmberg wrote:
>doug brann wrote:
>>Hi,
>>
>>so my (latest) problem is that I'm running embedded, persistent perl in a 
>>manner very similar to the perldoc on perlembed (which I've attached at the 
>>bottom of this e-mail)
>>
>>All of this is straight forward enough. But sometimes the script that is 
>>being run needs to be debugged, and my users ALL use ptkdb. If this were 
>>being run under UNIX, the problem would be quickly solved. I would just have 
>>the user modify his first line to read:
>>
>>#!/apps/bin/perl -d:ptkdb
>>
>>When a UNIX user does this in a persistent, embedded perl, he gets the 
>>perl/Tk debugger to start up, albeit a little weirdly (he has to reload the 
>>file).
>>
>>Since VMS perl seems to ignore the #!/apps... line I really don't know what 
>>to do.
>
>Support for the #!/apps... on VMS was put into blead a while back, and may be 
>in the unstable development release.  I have not kept track.
>
>It should be possible to back port that code into a patch for a production 
>release of Perl.
>
>The patch for blead was written assuming that support for full length 
>filenames is present.

I'm not sure what patch you refer to.  Some degree of modified
shebang line support has been in Perl on VMS for many years, at least
the part that supports switches.  And a quick test shows that the
current development release will attempt to load an alternate
debugger from the shebang line:

$ perl -e "#!perl -d:flirble; print 'hello world';"
Can't locate Devel/flirble.pm in @INC (@INC contains: 
perl_root:[lib.VMS_AXP.5_9_5] perl_root:[lib] perl_root:[lib.site_perl.VMS_AXP
] perl_root:[lib.site_perl] .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
%SYSTEM-F-ABORT, abort

and I get identical results from Perl 5.8.4, so the support for this
is not at all new.

So, if ptkdb is definitely available in the Devel::* namespace, then
something else is wrong.  What version of Perl are you running, Doug?
What do you get from:

$ perl -cwe "use Devel::ptkdb;"

?
-- 
________________________________________
Craig A. Berry
mailto:[EMAIL PROTECTED]

"... getting out of a sonnet is much more
 difficult than getting in."
                 Brad Leithauser

Reply via email to