Regards.../om
On 15-May-2012, at 18:23, Bob McConnell <r...@cbord.com> wrote: >> From: Sunita.Pradhan >> >> I want to print the command during script execution . >> Example : >> >> >> =================== >> $ls = `ls`; >> >> Print "$ls\n"; >> ================== >> >> In the above script I want to print "ls" command before 'ls' command gets >> executed . Like "set -x" does in shell scripts . >> >> Could you please help me on this ? > It looks to me she is simply looking for a debugger, set -x in shell helps in debugging the scripts, for perl the best option would be to use 'perl -d script name' option. > Are you looking for a Perl script, or just a shell script? Using Perl for > this appears to be like using a baseball bat to swat a fly. But here in a > Perl mailing list, you are going to get Perl scripts. If that is not what you > are looking for, you need to find a mailing list for your particular shell, > which you didn't name. > > Bob McConnell > > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/