Arijit Das wrote:
> Is there anything like set -x in Boure Sheel scripts in Perl
> which can print all the statements as they are executed?

Yes, that and a whole lot more. See the -D switch in 'perldoc perlrun'.
Unfortunately it requires that perl be compiled with debugging enabled,
which I don't believe is the case for Activestate distributions, so you
would have to build perl yourself. In any case it is more directed at
debugging perl rather than Perl scripts.

I find that the perl debugger is much more useful for debugging Perl
scripts than what is produced by 'set -x' in shell scripts. See 'perldoc
perldebug'.

HTH

-- 
Brian Raven
 


-----------------------------------------------------------------------
The information contained in this e-mail is confidential and solely 
for the intended addressee(s). Unauthorised reproduction, disclosure, 
modification, and/or distribution of this email may be unlawful. If you 
have received this email in error, please notify the sender immediately 
and delete it from your system. The views expressed in this message 
do not necessarily reflect those of LIFFE Holdings Plc or any of its subsidiary 
companies.
-----------------------------------------------------------------------


_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to