- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Running perl script in debug mode
Operating System - HP-UX
1821980
Members
3099
Online
109638
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2009 10:05 AM
тАО04-01-2009 10:05 AM
Running perl script in debug mode
Hello,
We run shell script in debug mode using the switch -x as below.
#!/bin/sh -x
How do we run perl script in debug mode similar to the above one ?
Thanks,
Shiv
We run shell script in debug mode using the switch -x as below.
#!/bin/sh -x
How do we run perl script in debug mode similar to the above one ?
Thanks,
Shiv
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2009 10:16 AM
тАО04-01-2009 10:16 AM
Re: Running perl script in debug mode
Hi Shivkumar,
#perl -d <script name>
#perl -d <script name>
Best wishes,
Ganesh.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2009 10:20 AM
тАО04-01-2009 10:20 AM
Re: Running perl script in debug mode
Hi,
perl man page is here..
http://www.zedat.fu-berlin.de/cgi-bin/compute/perl.cgi
perl man page is here..
http://www.zedat.fu-berlin.de/cgi-bin/compute/perl.cgi
Best wishes,
Ganesh.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2009 10:23 AM
тАО04-01-2009 10:23 AM
Re: Running perl script in debug mode
Hi Shiv:
This is a bit different. First, always use the 'strict' and 'warnings' pragma. You can get more detailed warnings by adding the 'diagnostics' pragma. You can always add your own debugging print statements too.
You can syntax check with:
# perl -c
You should see:
# man perldebtut
# perldoc perldebtut
...for more gory details.
Since Perl is compiled before it executes, unlike the interpretative shell, a successful compilation ('perl -c') means that syntactically all is OK. Whether or not the code does what you want or not, however, is the matter with computers :-)
Regards!
...JRF...
This is a bit different. First, always use the 'strict' and 'warnings' pragma. You can get more detailed warnings by adding the 'diagnostics' pragma. You can always add your own debugging print statements too.
You can syntax check with:
# perl -c
You should see:
# man perldebtut
# perldoc perldebtut
...for more gory details.
Since Perl is compiled before it executes, unlike the interpretative shell, a successful compilation ('perl -c') means that syntactically all is OK. Whether or not the code does what you want or not, however, is the matter with computers :-)
Regards!
...JRF...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP