How to keep values from multiple pages of form?

2001-07-22 Thread jatuporn
I want to make a registration form that separates in 2 pages. The first page asks for user information and the second page which asks for their education background. After fill out and summit both forms, I will show their information that fill out in both forms(like preview page). For now, i th

Re: pls help

2001-07-22 Thread Jos I. Boumans
It's not all that hard, just follow the links... but here's the page you can click to download: http://aspn.activestate.com/ASPN/Downloads/ActivePerl hth, Jos Boumans > Hi all > > This amy seem a little silly, but I've checked perl.com, perl.org, and > activestate.com and cannot find instructi

Dates subtraction

2001-07-22 Thread Ackim Chisha
Hi Everybody, Is there a shortcut way to subtract dates say for instance I would like to be subtracting the current date from the date that the service for a particular user expires, say (expiry date -- current date). Or do I have to write a specific script for this. Forgive my newbie ignorance.

RE: Dates subtraction

2001-07-22 Thread Steve Howard
Have you installed and DATE::CALC. If so you would do something like this: # use date calc and get the current time into a hash: use Date::Calc qw(:all); my %th; @th{qw(sec min hour mday mon year wday yday isdst)} = localtime(time); $th{mon}++; $th{year} += 1900; #define the expiatory date

RE: Dates subtraction

2001-07-22 Thread Jeff 'japhy/Marillion' Pinyan
On Jul 22, Steve Howard said: >Have you installed and DATE::CALC. If so you would do something like >this: > >my $dd = Delta_Days(@th{year, mon, mday}, @expiatory); I far prefer the simpler (and standard-module) approach of the Time::Local module. This module is a tool you should get to know we

data types

2001-07-22 Thread fireal
HELP Firstly , my greetings to the Pe(a)rl community. Then,straight ahead to the subject of this e-mail: I 'm student in the first grade of CEID (Computer Engineering and INformatics Department) in the University of Patras in Greece. (which i suppose explains the poor quality of my English :-

data types

2001-07-22 Thread fireal
HELP Firstly , my greetings to the Pe(a)rl community. Then,straight ahead to the subject of this e-mail: I 'm student in the first grade of CEID (Computer Engineering and INformatics Department) in the University of Patras in Greece. (which i suppose explains the poor quality of my English :-

Re: data types

2001-07-22 Thread Jos I. Boumans
Hello, i wrote some beginners tutorial on http://japh.nu which deal with most of the questions you're asking here maybe you should take a look, see if that answers some of your questions. regards, Jos Boumans HELP More specifically : my essay demands me to find out about Perl data types.Would

RE: pls help

2001-07-22 Thread Tom Malone
Sorry for the stupid question - I was just having problems because I downloaded the wrong version of the windows installer program. Doh! Tom -Original Message- From: Jos I. Boumans [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 22, 2001 8:02 AM To: [EMAIL PROTECTED]; Perl List Subject: Re

pattern matching

2001-07-22 Thread Greg
Hello again... I am reading in a file. There is a header of a varying number of lines. All the header lines start with non-digits. I want to write them right back out, untouched. All the others get crunched. I haven't been able to get past the header. I will include samples of both below.

Re: How to keep values from multiple pages of form?

2001-07-22 Thread Abdulaziz Ghuloum
Hello, After getting all variables of the first form using CGI.pm I assume, you place these values in hidden fields in the form on the second page. That way, when the second page is submitted, you have all variables. But then again, why do we have 2 pages? Hope this helps,,, Aziz,,, In arti

RE: pattern matching

2001-07-22 Thread Wagner-David
If truly must have a digit to start with to do other processing, then you could do: #one form could be: if ( ! /^\d/ ) { # print the headers }else { # do other processing } # or another form: if ( ! /^\d/ ) { print

RE: pattern matching

2001-07-22 Thread Greg
I have tried your example, but perhaps I have something else incorrect in my script. I included the full script. (I'm fairly new so there may be some other issues..) If I exec this script below.. It passes all lines untouched. I have tried a couple other methods and still no luck.. Thanks..

Re: pattern matching

2001-07-22 Thread Papo Napolitano
Use either --- while (($line=)) { chomp($line); if (!($line =~ /^\d/)) { print OUTDATA "$line **unchanged** \n"; next; } else { blah blah blah --- or --- while () { chomp

RE: Dates subtraction - one more simplification

2001-07-22 Thread Steve Howard
Still using Date::Calc, here is a much easier way to do what I posted earlier: use Date::Calc qw(:all); $dd = Delta_Days(Today(), 2002, 1, 23); print "$dd\n"; In that case it is giving the difference between January 23, 2002 and today in days. I had forgotten about the "Today" function when I

date verification

2001-07-22 Thread Hal Wigoda
I nned a module to verify dates entered in an html cgi form. Any clues?? hal -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

using stat()

2001-07-22 Thread charles
my code: #!/usr/bin/perl -w use strict; my $info; my $file; opendir(DIR, "/etc/") or die "Can't open directory : $!\n"; my @list = readdir(DIR); for $file(@list) { next if ( -d $file ); $info = (stat($file))[7]; print "Filename: $file : $info\n"; } closedir(DIR); I am getting:

Re: using stat()

2001-07-22 Thread Michael Fowler
On Sun, Jul 22, 2001 at 08:34:18PM -0500, [EMAIL PROTECTED] wrote: > opendir(DIR, "/etc/") or die "Can't open directory : $!\n"; > my @list = readdir(DIR); > for $file(@list) { > next if ( -d $file ); > $info = (stat($file))[7]; > print "Filename: $file : $info\n"; > } > closedir(D

RE: I need to create a module - I think - and don't know how

2001-07-22 Thread Ken Cole
Hi Jos, > That's a good idea Joni, > > however, personally, i'd always add a constructor, no matter > how basic... > > you could do something like this (add this to the file joni > described): > > sub new { return bless {}, shift } Lost me here :( > this will indicate that this object belongs t