IO::Socket need help

2002-04-03 Thread Morgan Norell
Hi I'm about to lern the basics of perls IO::Socket. I have managet to set up a small server and connected to it with a client (I had some help of a perl book). But I want to be able to send a command to it and get a response. For exapmle request the servers hostname. Can anyone please help me

Processing a text file

2002-01-25 Thread Morgan Norell
Hi I need help with this: I have a text file looking like this username || password[EMAIL PROTECTED] username || password[EMAIL PROTECTED] username || password[EMAIL PROTECTED] I need a perl program who makes a file of each domainX.com in a separate dir

how-to update a passwd file

2002-01-11 Thread Morgan Norell
Hi I have a passwd file for my ftp users. I have written a script to add users but I have problems when I'm about to add a uppdate function to the script. Does anyone have a tip how to read the passwd file and update the password field. I use htpasswd to generate passwords now. /Raven --

Database question?

2001-08-24 Thread Morgan Norell
I have a Mysql database and I use a select that looks like this $query = sprintf("SELECT field1,field2,field3,field4 FROM table1 WHERE field2 like 2282 AND %s like '%s'", $searchmode, $showmode); then I take $query for processing. My problem is that I want to sort the query by field2. I have tr

$$ What does it mean?

2001-08-24 Thread Morgan Norell
Can someone tell my why there are two $$ in the row below the for statement, is there any special meaning or ? while (my $ref = $std->fetchrow_arrayref()) { my %resultrow; for (my $i = 0; $i < $numFields; $i++) { $resultrow{$$names[