urandom

2002-05-16 Thread Postman Pat
Greetings, I would like to create get some random stuff using /dev/urandom. What I was thinking is using stuff from urandom as the random seed and using the normal rand stuff from perl? Any ideas how I could code this, or is there a better way of actually getting random stuff. Regards K --

Library ref man

2002-05-16 Thread Postman Pat
Greetings, I am looking for a perl library reference manual in PDF format if there is such a thing out there. I have seen library ref manuals in html, but was just wondering if there is anything in PDF just to avoid downloading the stuff. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Test how we were executed

2002-05-16 Thread Postman Pat
Greetings, I want to write a script that will check to see if it was called from another script, if not it will display a message saying for instance this script is meant to be called from other script & not run interactively for instance otherwise if called from a script will do it's intended

RE: Test how we were executed

2002-05-17 Thread Postman Pat
What I meant is test to see if we were run from an interactive shell, if so, print an error message. LK -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

my & local variables

2002-05-19 Thread Postman Pat
Greetings, I read in the book SAMS Teach Yourself Perl in 21 Days that you can use my/local to declare vars. They explanation I got from the book did not do much explaining on exactly what the difference is between the two. Can someone please shed some light. Regards LK -- To unsubscribe, e

Writing to the Windows registry

2002-05-19 Thread Postman Pat
Greetings, I am trying to write to the registry using example code that I got from le- berre.com I obviously did something from here coz this does not work. --- Start code --- print ("Inserting registry settings [@ARGV[$i]]\n"); my $Register = "thiskey/test"; my $hkey; $HKEY_CURRENT_US

getopt::std

2002-05-21 Thread Postman Pat
Greetings, I am trying to do command line processing using the above lib, but am not quite getting the syntax from the PLEAC perl project. For instance I have the following args allowed: -s x.x.x.x | server.domain.com > server is ip/host -o outfile > output to outfile -h > display help. I under

building stand-alone apps

2002-05-24 Thread Postman Pat
Greetings, I am looking for a freeware perl2exe type of tool for Windows. Any ideas if such exists & where I can get it? Regards LK -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Encryption with rijandael.

2002-05-28 Thread Postman Pat
Greetings, I am looking for basic examples of how I would go about doing encryption using rijandael. For instance, I wanna take a text file $file and encrypt it with a given key $key and write it to file $cryptfile. Any ideas? Thanks in advance. Regards LK -- To unsubscribe, e-mail: [EMAIL

install crypt::passgen

2002-05-28 Thread Postman Pat
Greetings, I am having a problem with ActiveState ActivePerl 5.6.1. I am tryin to install the abovementioned lib & I get the following error from PPM version 3 beta 3 ppm> search crypt::passgen Searching in repository 2 (ActiveState Package Repository) 1. Crypt-PassGen [0.02] ppm> install c

DB_file help.

2002-05-31 Thread Postman Pat
I am trying to create a small database with the information like this: Each record has a name ie : Dog And has the following traits: color weight nick For example I could have the following data: Name: dog Color: green Weight: 66 Nick: doggie friend: cat Name: fox Color

Config::General help

2002-06-10 Thread Postman Pat
Greetings, I am trying to use config::general on my script. The config file looks like this: lname=soap uname=joes [EMAIL PROTECTED] gay=1 lname=doe uname=jandoe [EMAIL PROTECTED] gay=0 lname=shady uname=eminem [EMAIL PROTECTED] gay=1 I would like to read this in from file and display it

Setting NT/Win2k networking params

2002-06-11 Thread Postman Pat
Greetings, Is there a CPAN module that I can use to set network settings for WinNT/2K such as WINS server, DNS server address, that kind of stuff. I am also looking for a pure perl way of setting the IP address, mask & gw. Currently I am using the command line tool netsh to do this. A pure pe

sorting a hash by value.

2002-06-23 Thread Postman Pat
Greetings, I would like to sort a hash by value. The hash values are numbers. I would like to sort this by desceding order. How would I do this? I have searched and found nothing on it. I have found lots on sorting by key though... Please help dudes! Ciao LK -- To unsubscribe, e-mail: [EMAI

what does this pattern match?

2002-06-23 Thread Postman Pat
$_=~s/\n//msg; What does the above match? LK -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]