Check out 'ddd'.
I've heard it allows you to attach a remote console debugger to
a parl script. Hence you could web browse to http://whatever and
trap the CGI invocation when it starts up and attaches to the debugger.
Not sure about the details though.
> -Original Message-
> From: Mi
On 03/16/04 00:06, James Taylor wrote:
I'm modifying a script someone wrote that basically reads a file file
into STDIN, and I was curious if there was anyway of modifying the stdin
value without having to first open the file, modify it, close the file,
and then open it into stdin.
I think what
> -Original Message-
> From: Mike Ni [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 16 March 2004 3:46 PM
> To: [EMAIL PROTECTED]
> Subject: Perl -d
>
> Hey everyone,
>
>
> While I was playing with perl's built-in debuger
> (perl -d), I notice that debugger doesn't seem
> care too much
I'm modifying a script someone wrote that basically reads a file file
into STDIN, and I was curious if there was anyway of modifying the
stdin value without having to first open the file, modify it, close the
file, and then open it into stdin.
Basically, looks like:
open(STDIN,$filename) || di
Hey everyone,
While I was playing with perl's built-in debuger
(perl -d), I notice that debugger doesn't seem
care too much about whether a variable is declared?
For example, I would get response of "empty hash" if
I do a "x \%dummy" regardless dummy hasn't been
delcared yet.
The same res
Please post to the list when possible so others can contribute/benefit.
Thanks. Comments inline below:
On 03/15/04 22:56, [EMAIL PROTECTED] wrote:
I tried running the install commands in PPM and got this:
'Retrieving package 'DBD'...
Error installing package 'DBD' : Could not locate a PPD file f
On 03/15/04 22:25, Mike Ni wrote:
Hey Randy,
Am I right to think that each hasing pair are made of
"name of environment variable" such as "PATH"
and the "value" of the env variable?
Yes, the environment variable names are the keys in the hash, and the
value of each hash element is the value of
On 03/15/04 20:22, Norman Zhang wrote:
I generated the script with
"find2perl testfl/ -mtime +30 > rmoldshares.pl", but it seems File::Find
doesn't recognize foldernames with spaces. 8( Anyone know other
solutions beside using manual opendir, readdir, closedir?
Here is a routine I wrote a while b
Is there a specific reason you're using perl for this task? You can
accomplish the same with:
find /share_folder -mtime +30 | xargs rm
but you should probably verify the correctness of the command first with
find /share_folder -mtime +30 | xargs ls
Thank you so much. Your simple script does pre
Randy W. Sims wrote:
On 03/15/04 15:00, Wiggins d Anconia wrote:
Not necessarily true. perldoc expects POD, which can be internal or
external to a particular module's source code, it is possible to remove
the documentation and still have the module installed. Slightly better
would be to just invo
On 03/15/04 17:37, Mike Ni wrote:
Hey friends,
Could anyone tell me where to
find the man page for the "%ENV"?
I didn't have too muck luck on www.perl.org
nor with CPAN site. Perhaps I got the wrong ideal
about perl's man page. Yet, I just can't seem
to find the man page about "%ENV".
I nee
On 03/15/04 17:34, Norman Zhang wrote:
Randy W. Sims wrote:
Is there a specific reason you're using perl for this task? You can
accomplish the same with:
find /share_folder -mtime +30 | xargs rm
but you should probably verify the correctness of the command first with
find /share_folder -mtime +
> Hey friends,
>
> Could anyone tell me where to
> find the man page for the "%ENV"?
>
> I didn't have too muck luck on www.perl.org
> nor with CPAN site. Perhaps I got the wrong ideal
> about perl's man page. Yet, I just can't seem
> to find the man page about "%ENV".
>
> I need to finut w
Hey friends,
Could anyone tell me where to
find the man page for the "%ENV"?
I didn't have too muck luck on www.perl.org
nor with CPAN site. Perhaps I got the wrong ideal
about perl's man page. Yet, I just can't seem
to find the man page about "%ENV".
I need to finut what are included by th
Not being a web developer, I'm a DBA by profession, I am attempting to
write a web application that will perform a simple (in my mind)
database process.
What I want to know how, if possible, can I pop-up a window or open
the initial web-page and gather a user_name and password but use the
AIX auth
On Fri, 12 Mar 2004, R. Joseph Newton wrote:
>
> Charlotte Hee wrote:
>
> >
> > For a single record I can see how that works but let's say I have
> > 4 or 5 employees and I have the employee information for each one
> > (assumed). Now I want to build a record for each employee in a loop like
> >
On 03/15/04 15:00, Wiggins d Anconia wrote:
Not necessarily true. perldoc expects POD, which can be internal or
external to a particular module's source code, it is possible to remove
the documentation and still have the module installed. Slightly better
would be to just invoke the perl interprete
Please bottom post
> Not the prettiest way but here is how I check if File::Find is installed:
>
> perldoc -X File::Find
>
>
> Like I said, it's not pretty. I figure there wouldn't be a doc on the
machine if the module wasn't there. Bad presumtion I know. Still,
maybe someone can help e
Norman Zhang wrote:
>
> Hi,
Hello,
> I've /share_folder with many user folders.
>
> e.g.,
>
> /share_folder/user_a
> /share_folder/user_b
> ...
>
> I would like to scan all user folders for files that are older than 30
> days and delete them. Is this doable with Perl?
Something like this (un
On Mon, Mar 15, 2004 at 12:57:08PM -0800, John W. Krahn ([EMAIL PROTECTED]) wrote:
> Wiggins D'Anconia wrote:
> >
> > What is the OP really doing? Why the need to change the ownership of a
> > link, and why wasn't it created with the "correct" ownership to begin with?
>
> The ownership on a syml
Guruguhan N wrote:
>
> Hi All,
Hello,
> Is there any way we can get the list of variables used in a perl
> file without opening it? Any help in this regard is welcome.
perldoc B::Xref
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
On Mon, 15 Mar 2004 13:47:09 -0700
"Wiggins d Anconia" <[EMAIL PROTECTED]> wrote:
>
> Boy that must have been "music" to your ears ;-) those gude spelers in
> the croud will get mi meaning
Ah, of course!!! sarcasm. I get it.
So all we need now is a spell checker parser program, which Im
Wiggins D'Anconia wrote:
>
> What is the OP really doing? Why the need to change the ownership of a
> link, and why wasn't it created with the "correct" ownership to begin with?
The ownership on a symlink should be irrelevant because the permissions
are set to rwxrwxrwx by default. Just to spec
> On Mon, 15 Mar 2004 14:11:44 -0500
> "Randy W. Sims" <[EMAIL PROTECTED]> wrote:
>
> > You can use the perl utility 'find2perl' to generate the code for you:
> >
> > find2perl /share_folder -atime +30 > rmoldshares.pl
>
> This is great! I am a newbie... and i tried using the find2perl
utility,
On Mon, 15 Mar 2004 14:11:44 -0500
"Randy W. Sims" <[EMAIL PROTECTED]> wrote:
> You can use the perl utility 'find2perl' to generate the code for you:
>
> find2perl /share_folder -atime +30 > rmoldshares.pl
This is great! I am a newbie... and i tried using the find2perl utility, and viola!
it do
On 03/15/04 14:24, Norman Zhang wrote:
I've /share_folder with many user folders.
e.g.,
/share_folder/user_a
/share_folder/user_b
...
I would like to scan all user folders for files that are older than
30 days and delete them. Is this doable with Perl?
What do you mean by "older than 30 days"?
I've /share_folder with many user folders.
e.g.,
/share_folder/user_a
/share_folder/user_b
...
I would like to scan all user folders for files that are older than 30
days and delete them. Is this doable with Perl?
What do you mean by "older than 30 days"?
I mean files that were created 30 days a
I've /share_folder with many user folders.
e.g.,
/share_folder/user_a
/share_folder/user_b
...
I would like to scan all user folders for files that are older than 30
days and delete them. Is this doable with Perl?
Use File:Find and you can do all that you need to accomplish. See the doc.
Wags
Not the prettiest way but here is how I check if File::Find is installed:
perldoc -X File::Find
Like I said, it's not pretty. I figure there wouldn't be a doc on the machine if the
module wasn't there. Bad presumtion I know. Still, maybe someone can help educate
us. I'm a sorta perl-newbi
Norman Zhang wrote:
>>> I've /share_folder with many user folders.
>>>
>>> e.g.,
>>>
>>> /share_folder/user_a
>>> /share_folder/user_b
>>> ...
>>>
>>> I would like to scan all user folders for files that are older than
>>> 30 days and delete them. Is this doable with Perl?
>>
>> Use File:F
I know this doesn't fully answer you question but I'm wondering, do you mean files
that your users haven't accessed in 30 days? What if they are using it like once a
week?
I'm reading through the "Learning Perl 3rd Edition" and on page 159 there are a number
of file tests available. If your u
On 03/15/04 13:52, Norman Zhang wrote:
Hi,
I've /share_folder with many user folders.
e.g.,
/share_folder/user_a
/share_folder/user_b
...
I would like to scan all user folders for files that are older than 30
days and delete them. Is this doable with Perl?
What do you mean by "older than 30 day
Norman Zhang wrote:
> Hi,
>
> I've /share_folder with many user folders.
>
> e.g.,
>
> /share_folder/user_a
> /share_folder/user_b
> ...
>
> I would like to scan all user folders for files that are older than 30
> days and delete them. Is this doable with Perl?
Use File:Find and you can
Hi,
I've /share_folder with many user folders.
e.g.,
/share_folder/user_a
/share_folder/user_b
...
I would like to scan all user folders for files that are older than 30
days and delete them. Is this doable with Perl?
Regards,
Norman
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Andrew Gaffney wrote:
I've read through the Expect.pm documentation and looked at what few
examples I could find, but I still can't figure out how to use Expect to
interact with the 'passwd' program. Can anyone point me to an example
that does this? Thanks.
I figured it out, mostly. I can get it
I've read through the Expect.pm documentation and looked at what few examples I could
find, but I still can't figure out how to use Expect to interact with the 'passwd'
program. Can anyone point me to an example that does this? Thanks.
--
Andrew Gaffney
Network Administrator
Skyline Aeronautics,
NAME
beginners-faq - FAQ for the beginners mailing list
1 - Administriva
1.1 - I'm not subscribed - how do I subscribe?
Send mail to <[EMAIL PROTECTED]>
You can also specify your subscription email address by sending email to
(assuming [EMAIL PROTECTED] is your email address):
I've checked cpan AppConfig. I may get back to it.
Thanks Randy
-Ursprüngliche Nachricht-
Von: Randy W. Sims [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 15. März 2004 12:36
An: B. Fongo
Cc: [EMAIL PROTECTED]
Betreff: Re: AW: Problem using require()
On 03/15/04 06:19, B. Fongo wrote:
Hello together,
Im looking for a method to tell my program that it has to put out debug
statements. With getopts("d") I allready managed that my main-routine does
this. But the subroutines I realized as packages in their own files. So when
I call my subroutines via package::methode() they don't
On Mon, Mar 15, 2004 at 11:32:47AM +, Ohad Ohad wrote:
>
Ugh. Could you please try and persuade hotmail not to do that?
> 3. What's the status of adding lchown to POSIX ?
I suppose it's just waiting for someone to do it. It doesn't look too
complicated. If someone produces a reasonable
On 03/15/04 06:19, B. Fongo wrote:
The idea of creating a package is clear, but it doesn't solve the
problem at hand. What I want is a possibility for non programmers to
change the global variable to reflect to their server (e.g. path to
sendmail, email address, currency symbol etc.) environment wi
The idea of creating a package is clear, but it doesn't solve the
problem at hand. What I want is a possibility for non programmers to
change the global variable to reflect to their server (e.g. path to
sendmail, email address, currency symbol etc.) environment without
messing with the perl codes.
On 03/15/04 02:30, N, Guruguhan (GEAE, Foreign National, EACOE) wrote:
Hi All,
Is there any way we can get the list of variables used in a perl file without opening
it? Any help in this regard is welcome.
By "opening", I assume you mean without executing; otherwise the answer
is a definate no. =)
On 03/14/04 22:12, [EMAIL PROTECTED] wrote:
To whom it may concern:
I'm new to PERL programming and am trying to get my PERL application to
connect to an Access database. The PERL I've been using was a free copy you find
in the Learning PERL (Dietel).
I don't know what version comes with the bo
To whom it may concern:
I'm new to PERL programming and am trying to get my PERL application to
connect to an Access database. The PERL I've been using was a free copy you find
in the Learning PERL (Dietel). I've registered the database in ODBC and I've
installed Python on my PC (I'm using Wi
45 matches
Mail list logo