urandom
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 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Library ref man
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 additional commands, e-mail: [EMAIL PROTECTED]
Test how we were executed
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 purpose... Is there a way that I can actually get this working properly? Regards LK -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Test how we were executed
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
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-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Writing to the Windows registry
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_USER->Open ($Register,$hkey) || die ("Cannot open registry\n"); undef my $garbage; $hkey->SetValueEx("TestValue",$garbage,REG_SZ,"Friggin test"); $hkey->Close; --- End code --- It dies & returns cannot open the registry. Please help me understand what I am doing wrong and show some examples please. Regards LK -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
getopt::std
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 understand how to do the help option but not the top two that require an additional arg. ie I call "dowhatever.pl -s 192.168.1.1 -o didthis.txt" How would I go about getting this working? Regards LK -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
building stand-alone apps
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.
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 PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
install crypt::passgen
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 crypt::passgen Error: no suitable installation target found for package Crypt-PassGen. ppm> PLease help Ciao -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DB_file help.
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: purple Weight: 1000 Nick: foxie brown friend: sheepie Name: blue Color: pink Weight: Nick: blou friend: pinkie In the above example, there is no entry for weight. How would I go about storing and retrieving this information? Any examples please?? Regards LK -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Config::General help
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 on the screen or process it. Unfortunately my hash skills are not very good. Just about all that I have been able to do from the docs is this: \my %config = ParseConfig(-file => "foo.conf", -LowerCaseNames => 1); Please help... LK -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Setting NT/Win2k networking params
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 perl way would be nice. Regards LK -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sorting a hash by value.
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
what does this pattern match?
$_=~s/\n//msg; What does the above match? LK -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]