What has been installed

2004-04-15 Thread Harter, Douglas
When you install a Perl module, it is documented in a file. (I know this because I remember seeing it when I installed modules.) However, I have not installed any modules for a good while and forgot what the file name is. I would like to find out what extra modules I have installed. Can someone

RE: dealing with dates

2003-10-28 Thread Harter, Douglas
Do a search on www.cpan.org for Date::Pcalc. This is a whole series of Perl functions dealing with date calculations. (And I didn't even write them.) > -Original Message- > From: Steve Main [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 28, 2003 1:15 PM > To: [EMAIL PROTECTED] > Sub

alias in the shell

2003-10-17 Thread Harter, Douglas
Is it possible to create an alias in the shell from within Perl? I have a command I want to use in the shell after my Perl script executes. This command can vary, so what I would prefer to do is set up an alias to execute it. I realize aliases are created differently in different shells. I will

Conditional compilation

2003-09-11 Thread Harter, Douglas
I am writing a Perl script which will run on multiple machines. I have a use Expect; in the script. The problem is that Perl Expect is not currently installed on all the machines. Does Perl have any conditional compilation so that I can somehow NOT execute the use statement on the machines tha

File::Find

2003-08-28 Thread Harter, Douglas
I want to traverse a directory tree, find all files using a specific pattern (like *.tmp), and then if the modification age (-M) is over a certain limit, delete it. File::Find looks like it would be good for that, but the man page gives no real examples. There is a reference to a pfind script on C

Simulating VB Enum

2003-08-27 Thread Harter, Douglas
Visual Basic has a construct called Enum which looks like so: Enum namea dhbold dhcaption dhend dhform . end enum What it essentially does is assign an incrementing numeric value to each variable in the enum, so that dhbold = 1 dhcaption = 2 dhend = 3 dh form

Perl script to set a password

2003-08-06 Thread Harter, Douglas
To preface this, let me say that I am a system administrator responsible for creating and modifying User accounts on a Unix system. Is it possible to make a Perl script to change passwords using the passwd command without having to get and answer those prompts??? I have tried opening a process fi

Emacs and Perl syntax compile

2003-07-31 Thread Harter, Douglas
I am creating a good many perl scripts on a Unix using emacs. Can someone tell me what I need in my .emacs to do perl syntax compiles from emacs? . -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Tracing logic

2003-07-29 Thread Harter, Douglas
Is there a way to display to STDOUT what each statement looks like as it executes without going into the debugger? On our old system we called this VERIFY. You can do it in bash by doing a set -x. . -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]