Home > Archive > PERL Beginners > February 2005 > Using the perl debugger with options
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Using the perl debugger with options
|
|
| Radhika 2005-02-23, 3:56 am |
| Hi,
I am a beginner perl programmer (but not exactly a novice) and am writing
a perl module which is itself inherited from another module. Also my perl
script uses getopts for various command line options. How can I use the
perl debugger with cmd line options?
every time I do:
../my_perl_script --install --dbname="blah"
does not work.
Any hints will be helpful.
regards,
Radhika
--
It's all a matter of perspective. You can choose your view by choosing
where to stand.
Larry Wall
---
| |
| Tyson Sommer 2005-02-23, 3:55 pm |
|
> -----Original Message-----
> From: radhika [mailto:radhika@88thstreet.com]
> Sent: Tuesday, February 22, 2005 12:37 PM
> To: beginners@perl.org
> Subject: Using the perl debugger with options
>
> Hi,
> I am a beginner perl programmer (but not exactly a novice)
> and am writing
> a perl module which is itself inherited from another module.
> Also my perl
> script uses getopts for various command line options. How can
> I use the
> perl debugger with cmd line options?
>
> every time I do:
>
> ./my_perl_script --install --dbname="blah"
>
> does not work.
>
> Any hints will be helpful.
>
> regards,
> Radhika
Did you try:
perl -d /path/to/my_perl_script --install --dbname="blah"
That works for me on my scripts with Getopt::Long
| |
| Radhika 2005-02-23, 3:55 pm |
| > Did you try:
>
> perl -d /path/to/my_perl_script --install --dbname="blah"
>
> That works for me on my scripts with Getopt::Long
>
>
>
Hi,
I did try:
perl -d ./my_script --install --dbname="bbb"
That did not seem to work for me. It could be that certain modules I am
writing are not loading properly. Another way to do this I found was
including perl -d in the perl script.
eg #! /usr/bin/perl -d -w
And this works.
Thanks anyways.
Radhika
|
|
|
|
|