[Israel.pm] Echo-ing commands to the standard output

Yuval Yaari yuval at windax.com
Sun Feb 27 08:46:34 PST 2005


There probably is (right?) but I can't think of it right now.
But my favorite tool is Devel::SmallProf (get it from CPAN):
perl -d:SmallProf script.pl

This is probably the most helpful tool ever.
I hope it helps...

  --Yuval

David Rachamim wrote:

>Hi All,
>Is there a way to have Perl echo the commands it gets to the standard
>output (or to any other place) before it executes them?
>The following example may explain what I mean:
>
>The script:
>-----------
>
>print "Hello\n";
>for (1..3)
>{
>	print "$_\n";
>}
>
>
>The output (should be something generally like this):
>-----------------------------------------------------
>
>print "Hello\n";
>Hello
>for (1..3)
>{
>	print "$_\n";
>}
>print "$_\n";
>1
>print "$_\n";
>2
>print "$_\n";
>3
>
>--------------------
>Thanks,
>David
>
>_______________________________________________
>Perl mailing list
>Perl at perl.org.il
>http://perl.org.il/mailman/listinfo/perl
>
>
>
>  
>





More information about the Perl mailing list