Re: Renaming a File

2001-09-10 Thread Justin Simoni
There was DEFINETLY a race condition, I used a technique similar to this: http://www.stonehenge.com/merlyn/WebTechniques/col54.html to solve the problem. There were so many instances where either the live or the temp file would have been overwritten, it wasn't even, well funny. for the curious

Re: String to Date conversion

2001-09-10 Thread Gunther Birznieks
At 08:42 PM 9/10/2001 -0400, [EMAIL PROTECTED] wrote: >Hello, >Can some one please suggest me a pointer to do easy date manipulations in >perl. >I have dates as strigs I need to compare 2 dates and may >be sort an array of dates(Strings). > >Thanks >s- Look at the Date modules on CPAN. I quite l

Re: Renaming a File

2001-09-10 Thread Gunther Birznieks
At 08:42 PM 9/10/2001 -0600, Justin Simoni wrote: > > Well, what was your $! when the rename failed? If it was "cross-device > link", > > then you attempted something that you really can't do. > >I don't think it was anything like that, as with many :) real world >problems, it's a bit more compl

Re: Renaming a File

2001-09-10 Thread Justin Simoni
> Well, what was your $! when the rename failed? If it was "cross-device link", > then you attempted something that you really can't do. I don't think it was anything like that, as with many :) real world problems, it's a bit more complicated than that. The file in question on my failure was an

String to Date conversion

2001-09-10 Thread SAKHAT
Hello, Can some one please suggest me a pointer to do easy date manipulations in perl. I have dates as strigs I need to compare 2 dates and may be sort an array of dates(Strings). Thanks s- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Renaming a File

2001-09-10 Thread Randal L. Schwartz
> "Justin" == Justin Simoni <[EMAIL PROTECTED]> writes: >> Yes, and surprisingly enough, it's called "rename". :) Justin> I've had bad luck using rename, I've had to copy the file to Justin> the new name and deep six the old, check out File::Copy, I Justin> think it ironically, has a functio

Re: Renaming a File

2001-09-10 Thread Brett W. McCoy
> > Yes, and surprisingly enough, it's called "rename". :) > > I've had bad luck using rename, I've had to copy the file to the new name > and deep six the old, check out File::Copy, I think it ironically, has a > function called copy(), or even cp(), my memory eludes me. There's also one called

Re: Renaming a File

2001-09-10 Thread Justin Simoni
> Yes, and surprisingly enough, it's called "rename". :) I've had bad luck using rename, I've had to copy the file to the new name and deep six the old, check out File::Copy, I think it ironically, has a function called copy(), or even cp(), my memory eludes me. -- justin simoni!

Re: Renaming a File

2001-09-10 Thread Randal L. Schwartz
> "Scott" == Scott Heckel <[EMAIL PROTECTED]> writes: Scott> Is there a function that will let you rename a file from say Scott> file.txt to file.bck? Thanks. Yes, and surprisingly enough, it's called "rename". :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0

Renaming a File

2001-09-10 Thread Scott Heckel
Is there a function that will let you rename a file from say file.txt to file.bck? Thanks. - Scott

Re: options for the checkbox...?

2001-09-10 Thread Helen Dickey
I used my $IA = param('IA'); $IA = "(no answer)" if(/$IA/) eq (//); so the words (no answer) came up for a blank IA Helen "Simon K. Chan" wrote: > Hi Everyone, > > Let's say I have this snippet of code for a checkbox: > > > > $name = param('bill'); > > If the box is checked, $name will have

Re: I'm stuck

2001-09-10 Thread Lisa Nyman
Hi, Oops - sorry - didn't see you were printing to the mailfile - Nevermind that one. You may not have permissions to open the mailfile. Try printing $! and see what you get as an error. It's always best to do error trapping on open() calls. If you print $! to standard output, you will need

Re: weird activity...

2001-09-10 Thread Morbus Iff
>i have a cgi script to enter user data, etc. i am also loading a couple >images. when the cgi comes up on my web browser, ( i am running rh7.1, >apache 1.3.19 PHP/4.04p11 mod_perl/1.24_01 and using opera ) the form is >there fine and works. my images don't show up. there is no error in th

Re: I'm stuck

2001-09-10 Thread Lisa Nyman
Hi, You need to establish your headers before you print anything. Lisa Wolfisch Nyman <[EMAIL PROTECTED]> IT Warrior Princess "Life is too short to wear ugly underwear." Get the facts at http://quickfacts.census.gov/ On Mon, 10 Sep 2001, Peter Bosmans wrote: > But if i comment the 3 lines be

I'm stuck

2001-09-10 Thread Peter Bosmans
Hi, I've a little problem. The next cgiscript doesn't work. (The mailfile will be created but i get a server error at my browser) But if i comment the 3 lines between "comment out", then this script will work. (i see the generated HTML-page at my browser) Does anybody see what the problem is ?

Re: STDIN loop help

2001-09-10 Thread Roger C Haslock
Would something like this help? $i=1 while(my $line=) { chomp $line; push @integer,$line; # push a scalar onto the array print "Enter another integer, please: "; last if ++$i>=10; } - Original Message - From: "David Draley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

weird activity...

2001-09-10 Thread Boex,Matthew W.
i have a cgi script to enter user data, etc. i am also loading a couple images. when the cgi comes up on my web browser, ( i am running rh7.1, apache 1.3.19 PHP/4.04p11 mod_perl/1.24_01 and using opera ) the form is there fine and works. my images don't show up. there is no error in the error

Re: A Framework for Building An WML/HTML Application Using Perl???

2001-09-10 Thread Gunther Birznieks
At 09:30 AM 9/10/2001 -0500, David Simcik wrote: >Hey all, > I'm trying to modify an existing script that searches a test file > for what >one could qualify as normal phonebook style entries; name, phone #, email >addy, etc. We've got an internal presentation coming up in two weeks, and m

STDIN loop help

2001-09-10 Thread David Draley
Hello - I am trying to put an @array in a loop that stores STDIN. Every time I run my program I can't get out of the loop. Is there a command that pushes the program out of the loop or do I need to use $ print "Please enter 10 integer values.\n"; $i = 1; while ($i <= 10)

A Framework for Building An WML/HTML Application Using Perl???

2001-09-10 Thread David Simcik
Hey all, I'm trying to modify an existing script that searches a test file for what one could qualify as normal phonebook style entries; name, phone #, email addy, etc. We've got an internal presentation coming up in two weeks, and my boss would like to WAP-ify this directory for it. That

Re: upload file

2001-09-10 Thread Rajeev Rumale
Yea its matter of choice. If you want you can use the file name which is submitted ($filename) or you can write have your own file name assigned to it. The later option is genrally used when you want to be sure that no existing file is over written. As the Perl gurus always says, "U can do it i

Re: upload file

2001-09-10 Thread Konstantin
Thank you very much. Now I get the file. But how do I get the name of the file now? Is it the matter of choice : the file or its name?:) - Original Message - From: Rajeev Rumale <[EMAIL PROTECTED]> To: Konstantin <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, September 20, 2001