RE: help with form

2001-12-10 Thread Bob Showalter
-Original Message- From: Pedro A Reche Gallardo [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 08, 2001 3:06 PM To: [EMAIL PROTECTED] Subject: help with form Hi all, I am working on a cgi script that can create a temporal file with either an uploaded file, or, in its

RE: Perl modules on web host server

2001-12-10 Thread Bob Showalter
-Original Message- From: Hoenie Luk [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 09, 2001 2:52 AM To: [EMAIL PROTECTED] Subject: Perl modules on web host server Hi, I'm new to cgi-programming with Perl and I've been looking for answers for the following questions: 1.

Re: IP Address Reverse Lookup

2001-12-10 Thread Brett W. McCoy
On Mon, 10 Dec 2001, Brian wrote: If at all possible, which perl module would I need to call in order to perform a reverse lookup on an IP address? I need to produce something simalar to the host command ie: [brian@mustang brian]$ host 12.90.6.4 4.6.90.12.in-addr.arpa domain name pointer

submit in shell/text mode

2001-12-10 Thread zaka rias
i got a html file like this : == #!/usr/bin/perl print akhir; Content-type: text/html htmlheadtitleg0d only/title/headbody form method=post action=getzack.cgi ok zack... gimme your pass : input name=pass type=password br input type=submit

Hash of Hashes to set up form

2001-12-10 Thread Marcus Willemsen
Hi all, can anybody help? I am trying to set up a form using a hash of hashes to build different types of fields as I think it is easier to check and process form input: my %fields = (textfield = { 'Name_of_textfield' = { -name = 'bla' },

question about reading a page to sort information

2001-12-10 Thread Lance Prais
I am a beginning perl developer and am a little confused I was wondering if anyone out there can give me some direction. or at the very least tell me a good site for beginners to get information. it seem like every site is for advanced developers My situation is as follows I have a command that

Re: cgi form

2001-12-10 Thread Mark Bergeron
How are you calling the form. You might try and including a little of your code so we can see what's going on. -Original Message- From: Tat Nam[EMAIL PROTECTED] To: Beginners Perl[EMAIL PROTECTED] Date: Sun Dec 09 23:01:10 PST 2001 Subject: cgi form Hi, I'm writing a survey form.

RE: question about reading a page to sort information

2001-12-10 Thread Herbold, John W.
-Original Message- From: Lance Prais [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 10:08 AM To: [EMAIL PROTECTED] Subject: question about reading a page to sort information SNIP my script need to do this: 1. call the function to generate the log file---done that 2. Read

printing a XML::Twig

2001-12-10 Thread Jeremy Webster
Has anyone here ever used the Twig::print method to print to a file? I'm having trouble getting it to work. Here is my code ($twig has already been parsed) $ofile = '/var/www/html/tech/xml/report.xml'; $twig-set_pretty_print('indented'); $twig-print(ofile); I get a malformed header from

accessing ASP functionality through Perl/CGI

2001-12-10 Thread Molly Magai
Does anyone know how to have a cgi script send a POST request to an unrelated Web page? Here's why: We're getting a new NT server. We currently run our pages on CGI scripts, but we're planning to move all our hosting to ASP in the next few months. In the meanwhile, we'll be running CGI on the

Re: accessing ASP functionality through Perl/CGI

2001-12-10 Thread Kevin Meltzer
Hi Molly, On Mon, Dec 10, 2001 at 01:11:06PM -0800, Molly Magai ([EMAIL PROTECTED]) said something similar to: Does anyone know how to have a cgi script send a POST request to an unrelated Web page? Have you looked at the LWP::* modules? Here's why: We're getting a new NT server. We

help with open function

2001-12-10 Thread Lance Prais
I am using the following statement to open a document. open(..\..\workflow.txt, Workflow)|| die Cannot open Workflow $!\n; 1. the perl.exe resides in e:\perl\bin\perl.exe 2. the workflow.txt reside is e: 3. the error I am getting is Cannot open workflow No Such file or directory What am I

RE: help with open function

2001-12-10 Thread Lance Prais
I tried that but received the same errors, I am sure it is a simple solution but I feel like I have tried every possible option with the same error. -Original Message- From: Herbold, John W. [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 3:35 PM To: [EMAIL PROTECTED]

Re: help with upload form

2001-12-10 Thread zentara
Pedro wrote: Hi all, I am working on a cgi script that can create a temporal file with either an uploaded file, or, in its absence, the pasted content of tha Well, I spent sometime to learn this upload example: Here is the solution I came up with. There were 2 problems as far as I could

Array Problem.

2001-12-10 Thread Andre` Niel Cameron
Hi, I have a prob:) I need to search threw an array and remove an item based on its name. I was thinking about maybie a for each loop but I am not sure how to go about it. Heres what I need to do: say $object= sword; I have an array @AllObjects('beer', 'nuts', 'sword', 'and more stuff') Now

Re: Array Problem.

2001-12-10 Thread Curtis Poe
--- Andre` Niel Cameron [EMAIL PROTECTED] wrote: Hi, I have a prob:) I need to search threw an array and remove an item based on its name. I was thinking about maybie a for each loop but I am not sure how to go about it. Heres what I need to do: say $object= sword; I have an array

Dynamic html/frames frm PERL not working

2001-12-10 Thread David Gilden
Could someone point out why the CGI script below does not work? Thanks, Dave The CGI (shown below) is used to create a frameset.html file. http://dowda.rockin.net/final/ Click on one of the left menu choices, ( using Netscape ) This is what the hrefs look like: a

Re: cgi form again

2001-12-10 Thread Tat Nam
Hi, The following scripts processes the form and write somthings out and then allow the user to input his/her e-mail address. After input of the e-mail address, the script write it into a flat file. However, the script runs into trouble. Help! #!/usr/local/bin/perl -wT use strict;

system

2001-12-10 Thread Christo Rademeyer
Hi if I use the system call like this system (ping localhost pinginfo); But in linux this will keep on going how can I set up a time on that ? Thanx christo -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: system

2001-12-10 Thread Sudarsan Raghavan
Check the -c option of ping (man ping). hth, Sudarsan Christo Rademeyer wrote: Hi if I use the system call like this system (ping localhost pinginfo); But in linux this will keep on going how can I set up a time on that ? Thanx christo -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Number of week

2001-12-10 Thread COLLINEAU Franck FTRD/DMI/TAM
Greetings, How can i get the number of the week from localtime function ? Best regards, Franck -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Number of week

2001-12-10 Thread nafiseh saberi
hi dear. you can use gmtime...it get many thing to you. $sec,$min,$hour,$mday,$mon,$year,$wday,$yday) = gmtime(time); be success. but why do youlike to use local time ?? thx. Best regards. Nafiseh Saberi

Re: system

2001-12-10 Thread Brett W. McCoy
On Mon, 10 Dec 2001, Christo Rademeyer wrote: if I use the system call like this system (ping localhost pinginfo); But in linux this will keep on going how can I set up a time on that ? Use the -n option to give it a set number of times it pings: system(ping -n 20 localhsot pinginfo); --

Re: system

2001-12-10 Thread Brett W. McCoy
On Mon, 10 Dec 2001, Brett W. McCoy wrote: if I use the system call like this system (ping localhost pinginfo); But in linux this will keep on going how can I set up a time on that ? Use the -n option to give it a set number of times it pings: system(ping -n 20 localhsot pinginfo);

Re: session variables

2001-12-10 Thread Jenda Krynicky
From: nafiseh saberi [EMAIL PROTECTED] hi dear. you can use... require cgi-lib.pl; PLEASE FORGET cgi-lib.pl USE CGI.pm ! ReadParse; $PASS=$in{pass}; pass exists in web and PASS is a variable that you can use it in your program. This will NOT read a session variable (for any

RE: Number of week

2001-12-10 Thread Flavio Soibelmann Glock
How can i get the number of the week from localtime function ? - feed localtime with january 04 in this year (for ISO 8601) - find out when that week begins; - find out the difference between today and that day; - divide that by seven days (and add one). Or, use a date module: use Date::Tie;

Re: Using die but not break out of the script

2001-12-10 Thread Michael . Mittentag
Just want to thank eveyone who responded. I have used a combination of all the resolutions. This was the first time I used this list and was surprised how fast and accurate I got a repsonse. Thanks - Forwarded by Michael Mittentag/USA/DDS on 12/10/2001 08:52 AM -

Re: how to automatically put 'membernames' in the msg posted.

2001-12-10 Thread Etienne Marcotte
well Use cookies or pass the member name to the posting script I mean there aren't 20 ways to pass variables to a script.. Either the username is sent to the script by a cookie, or in the hidden field of a form, but then you'd have to always make your link as forms, which is way longer to code

help with reading a txt file

2001-12-10 Thread Lance Prais
If I want to read through a text file and parse out the information in order to sort or compare data how would I begin to tackle this task? I understand logically how I it would work just not sure how to do it in perl. Thank you -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: help with reading a txt file

2001-12-10 Thread Frank
On Mon, Dec 10, 2001 at 08:12:42AM -0800, Lance wrote: If I want to read through a text file and parse out the information in order to sort or compare data how would I begin to tackle this task? I understand logically how I it would work just not sure how to do it in perl. ---end quoted

Stat function

2001-12-10 Thread COLLINEAU Franck FTRD/DMI/TAM
Greetings, I have the following code: opendir (INFO,l:/01_informatique) || die impossible d'ouvrire le répertoire 01_informatique: $!; while ($fic=readdir INFO) { if($fic=~/^c/) { @date=stat($fic); print $date[7]\n; } } close INFO;

RE: Stat function

2001-12-10 Thread COLLINEAU Franck FTRD/DMI/TAM
I have found Thanks -Message d'origine- De : COLLINEAU Franck FTRD/DMI [mailto:[EMAIL PROTECTED]] Envoyé : lundi 10 décembre 2001 11:08 À : '[EMAIL PROTECTED]' Objet : Stat function Greetings, I have the following code: opendir (INFO,l:/01_informatique) || die impossible d'ouvrire

Re: Stat function

2001-12-10 Thread Maurice Reeves
Perhaps the more idiomatic way to do what you want would be: use strict; my $directory = shift; chdir $directory or die Unable to change to directory: $!\n; while (*) # this automagically loops through the current dir { # I think you're trying to get last accessed date print -A, \n if

eval scope

2001-12-10 Thread Jon Molin
Hi list, I'm trying to use eval () with a constants module and it works very funny, can anyone explain this behavior to me. It seems to me as this is a scope thing. If i remove the 'my' it works fine but i can't see why it shouldn't work with my: i have a module with constants (constants.pm):

RE: Problem with replacing hash elements - solved

2001-12-10 Thread Epperson, Randall W
Thanks David, that solved my problem. -Original Message- From: Wagner-David [mailto:[EMAIL PROTECTED]] Sent: Friday, December 07, 2001 12:29 PM To: Epperson, Randall W; Perl Beginners list (E-mail) Subject: RE: Problem with replacing hash elements Here is a shot which works

Help on parsing record file

2001-12-10 Thread WANG, SHIPING [AG/1000]
Hi , I have following a record file like this: Customer ID:1711 * * * No record * * * Customer ID:842 Product ID: 716 Category:A Product ID: 1523 Category:C Product ID: 753 Category:D Product ID: 76 Customer

Comparing Lists of Users

2001-12-10 Thread Joshua Colson
Hello Perl Mongers, I'm trying to compare two lists of users, but I would like input on what each of you think would be the best way to do it? The first list is comprised of all users in a particular group, in the /etc/group format. The second list is very similar, but the format is slightly

Re: eval scope

2001-12-10 Thread Jenda Krynicky
From: Jon Molin [EMAIL PROTECTED] I'm trying to use eval () with a constants module and it works very funny, can anyone explain this behavior to me. It seems to me as this is a scope thing. If i remove the 'my' it works fine but i can't see why it shouldn't work with my: i have a module

Use perl to change File names

2001-12-10 Thread Booher Timothy B 1stLt AFRL/MNAC
Hello - I have been trying to use perl to change filenames this morning, and have been having a lot of luck, but have hit a stopping point. I have lwall's code: #!/usr/local/bin/perl # # Usage: rename perlexpr [files] ($regexp = shift @ARGV) || die Usage: rename perlexpr [filenames]\n; if

Mod_perl insight

2001-12-10 Thread Ian Zapczynski
Hello all, I'm a UNIX administrator with prior experience with Perl CGI on Windows NT. It looks as if I may be taking on some new Perl work which will make use of mod_perl with Apache. All I know so far about mod_perl is that the perl scripts run as part of the Apache process instead of

Re: Mod_perl insight

2001-12-10 Thread Etienne Marcotte
http://perl.apache.org/guide/ That is the place As for scripts, well if you are already coding strict, not declaring file scoped variables, it should not be very difficult. The guide gives the most common mistakes and ways to correct them. The best thing is to test your scripts on a local

Uninstall and re-install of Perl

2001-12-10 Thread Matt Thoene
Hi, I have a Mandrake Linux machine running Perl 5.6.0 from the installation RPM's. I have tried, several times unsuccessfully, to upgrade to Perl 5.6.1 and am running into all kinds of problems...too numerous to mention here. Bottom line is this...I'd like to just remove all instances of Perl

Re: Use perl to change File names

2001-12-10 Thread Peter Scott
At 11:28 AM 12/10/01 -0600, Booher Timothy B 1stLt AFRL/MNAC wrote: I want to be able to rename a file name from one number series to another number series ie: Image1.jpg Image2.jpg Image3.jpg to Foo234.jpg Foo235.jpg Foo236.jpg Is there a way to do this using regular expressions?

only accept 10 characters

2001-12-10 Thread rory o'connor
Thanks for everyone's help so far! This is an enjoyable list to read everyday. OK, can someone tell me how to take a variable that *may* be over 10 characters, and blow away anything after the 10th caracter? I am operating on phone numbers and the first thing I am doing is blowing away

set focus on a cgi form upon loading

2001-12-10 Thread Kevin Harwood
Is there a way to place the cursor in a text field automatically upon loading a cgi form? Here is the field and some of the code: print $query-start_form(); print p align=center; print BRbTool Name/bBR; print $query-textfield('name'), \n; print brbr; -- To unsubscribe, e-mail:

Re: set focus on a cgi form upon loading

2001-12-10 Thread Maurice Reeves
http://www.wiley.com/legacy/compbooks/stein/text/javascript.txt This link will take you to the 'OFFICIAL GUIDE TO PROGRAMMING WITH CGI.PM' website which lists code examples, and specifically this one shows how to use Javascript with CGI. hth, Maurice Reeves From: Kevin Harwood [EMAIL

Re: set focus on a cgi form upon loading

2001-12-10 Thread Etienne Marcotte
it is dhtml/javascript onload function in the body tag that sets focus on a particular form element form.fieldname BODY onload=document.formname.fieldname.focus() HTH Etienne Kevin Harwood wrote: Is there a way to place the cursor in a text field automatically upon loading a cgi form?

Re: mysql....postgres

2001-12-10 Thread Kiarash Em.
mySQL vs postgreSQL?!?! check this out http://www.phpbuilder.com/columns/tim2705.php3?page=1 ;) From: Brett W. McCoy [EMAIL PROTECTED] To: nafiseh saberi [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: mysqlpostgres Date: Thu, 6 Dec 2001 06:57:41 -0500 (EST) On Thu, 6 Dec

printing web search result

2001-12-10 Thread Joe Echavarria
Hi there, I have made a web based application using perl, and when i try to print a search result page i always get at a footer note indicating the path of the file, the date and at the top of the page other information like page 1 of 1. I want to print just the web result with any other

Re: printing web search result

2001-12-10 Thread Etienne Marcotte
code snipplet please? :-) It would really help us to help you! Etienne Joe Echavarria wrote: Hi there, I have made a web based application using perl, and when i try to print a search result page i always get at a footer note indicating the path of the file, the date and at the top

RE: mysql....postgres

2001-12-10 Thread Mike Gargiullo
Oracle is How many inserts/second are you taking about? -Original Message- From: Curtis Poe [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 3:52 PM To: Etienne Marcotte Cc: [EMAIL PROTECTED] Subject: Re: mysqlpostgres --- Etienne Marcotte [EMAIL PROTECTED]

RE: mysql....postgres

2001-12-10 Thread Curtis Poe
--- Mike Gargiullo [EMAIL PROTECTED] wrote: Oracle is How many inserts/second are you taking about? If anyone would like to follow-up on this, it might be better to email me directly rather than continue this very off-topic thread :) I don't know how many inserts per second.

Re: Passing variables

2001-12-10 Thread William.Ampeh
This may sound too simple but this is the way I would have done it. In the front-end script, initialize the variables $VAR_1=; $VAR_2=; Then in the child scripts, you can change these variable $VAR_1=foo1; $VAR_2=foo2; If you use strict (what happens?). I have not tried it yet.

Permission denied - rename

2001-12-10 Thread COLLINEAU Franck FTRD/DMI/TAM
Hi! I 've written the code below. There is a problem with rename: i have the message: permission denied. Nevertheless, I have all the rights. What 's happen ? Franck ___ #!/usr/bin/perl -w $now=time; opendir

RE: help with open open function

2001-12-10 Thread Wagner-David
you are escaping your .'s though not want you want to do: need either ..\\..\\workflow.txt or ../../workflow.txt Use one or other and should work if file is there. Wags ;) -Original Message- From: Lance Prais [mailto:[EMAIL PROTECTED]] Sent: Monday, December

help with open open function

2001-12-10 Thread Lance Prais
I am using the following statement to open a document. open(..\..\workflow.txt, Workflow)|| die Cannot open Workflow $!\n; 1. the perl.exe resides in e:\perl\bin\perl.exe 2. the workflow.txt reside is e: 3. the error I am getting is Cannot open workflow No Such file or directory What am I

Re: help with open open function

2001-12-10 Thread Agustin Rivera
Well, besides escaping the periods, you also have it backwards. It should be open(Workflow, workflow.txt) || die $!; Unless someone knows something I don't..but I couldn't get it to work your way. Regards, Agustin Rivera Webmaster, Pollstar.com http://www.pollstar.com - Original Message

RE: help with open open function

2001-12-10 Thread Wagner-David
You are right. I looked at but only saw the ..\.. and not that they were switched. I tested(this time) and it worked as it should. You don't need to escape the .'s. Wags ;) -Original Message- From: Agustin Rivera [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 15:41

Uploading files to a web site status bar.

2001-12-10 Thread Mike Butler
I need to create a status bar for users who are uploading pdf files, some of them quite large, to a web site. Some of the users are on dial-up and the upload time could be quite lengthy, so they need to know that their upload is progressing and not to cancel the operation. Is there a way to do

Re: Uploading files to a web site status bar.

2001-12-10 Thread Curtis Poe
--- Mike Butler [EMAIL PROTECTED] wrote: I need to create a status bar for users who are uploading pdf files, some of them quite large, to a web site. Some of the users are on dial-up and the upload time could be quite lengthy, so they need to know that their upload is progressing and not to

Re: Uploading files to a web site status bar.

2001-12-10 Thread Curtis Poe
--- Mike Butler [EMAIL PROTECTED] wrote: I need to create a status bar for users who are uploading pdf files, some of them quite large, to a web site. Some of the users are on dial-up and the upload time could be quite lengthy, so they need to know that their upload is progressing and not to

RE: create an NT user with Perl

2001-12-10 Thread norishaam
Hi, Try Win32::Netadmin. It has all the modules to handle user accounts in NT. \|||/ (o o) ooO-(_)-Ooo Norishaam Adam MSA Field Services -Original Message- From: Jorge Goncalvez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 7:48 PM

Data::Dumper and eval question

2001-12-10 Thread Robert Thompson
Hello List, I am using Data:Dumper in a script and am running into a problem with use strict and eval. Basically the conundrum is that the data I will be loading from the Data::Dumper file is going to be based off input to the final script, so it may not be the same for each run of

getting lines from a file

2001-12-10 Thread Pradeep Sethi
With this code, I get : #!/usr/bin/perl -w my $ordfile=shift || die unable to open : $!s\n; open (LIST, $ordfile) || die unable to open file $ordfile : $!\n; while (LIST) { # chomp; # a) my $line=$_; print STDERR \nline : *** $line ***; } line : *** 6M2FD9XV *** line : ***

Re: Help on parsing record file

2001-12-10 Thread John W. Krahn
Shiping Wang wrote: Hi , I have following a record file like this: [snipped data. see below]  What I want output is: CustProdCata 1711 842 1523C 9306152 B 24727 15225 A 46917 9828B 50 4309C For each customer, I only select one

Re: Comparing Lists of Users

2001-12-10 Thread John W. Krahn
Joshua Colson wrote: Hello Perl Mongers, I'm trying to compare two lists of users, but I would like input on what each of you think would be the best way to do it? The first list is comprised of all users in a particular group, in the /etc/group format. The second list is very

Re: Permission denied - rename

2001-12-10 Thread John W. Krahn
COLLINEAU wrote: I 've written the code below. There is a problem with rename: i have the message: permission denied. Nevertheless, I have all the rights. What 's happen ? Just a guess but it could be that your OS will not let you rename a file that is open. You don't have to open the

Re: mysql....postgres

2001-12-10 Thread iain truskett
* Kiarash Em. ([EMAIL PROTECTED]) [11 Dec 2001 06:29]: mySQL vs postgreSQL?!?! check this out http://www.phpbuilder.com/columns/tim2705.php3?page=1 ;) Hmm. Seems rather out of date wrt postgres. 8kb rows? Is that of data? Because postgres quite happily has field types that allow

Re: Open for Reading and Writing.

2001-12-10 Thread John W. Krahn
Joshua Colson wrote: I have this code that is acting strange... does anyone know why. open( CONFIG, +config.file ) or die Cannot open config: $!; while( CONFIG ) { print; print CONFIG; } close( CONFIG ); The first time I run the script, it reads the file, which is one line,

File creation...

2001-12-10 Thread Daniel Falkenberg
Hi all, I want my perl code to be able to check to see if a file exist and if the file doesn't exist I want that file to be created. What would be my best way of going about this? Something like... $backup_file = $conhash{$title}{'Linux Passwd Backup'}; #Grab location from a directory located

RE: File creation...

2001-12-10 Thread Daniel Falkenberg
Dan, Just figured it out... my $backup = #Dir in hash somewhere. Not important -T $backup || open(BACKUP, /tmp/passwd_backup); Very, very cool! Cheers, Dan Hi all, I want my perl code to be able to check to see if a file exist and if the file doesn't exist I want that file to be

Deleting a hash value

2001-12-10 Thread Daniel Falkenberg
Hi all, %allusers = ( 'users' = { 'user' = 'Test Account', '*Crudles' = 'Hello World', 'Crud' = 'Another Test',