test mail plz ignore

2005-08-22 Thread hot flame
test mail plz ignore -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: round up to nearest...

2005-08-22 Thread Bryan Harris
Neat, I like it! Is this the best way to do simple integer round-ups? E.g. 3.2 -> 4? I've been using: $nines = 1 - 1/1e10; $value = 3.2; $roundedvalue = int($value + $nines); ... but it looks like $roundedvalue = $value + (-$value % 1) might be better??? - B > On Aug 19, Bryan Harris sai

upload question

2005-08-22 Thread Cristi Ocolisan
Hi all,   Does anybody know why this code does NOT copying the file into the specified directory? After the script is executed, my file is listed into the directory, but empty…   Strange?   my $upload_dir = "../../witp/sigle_firme"; my $max_size = 1024_000;   my $file_name;     

RE: upload question

2005-08-22 Thread David Aldridge
If this is the full code, you do not assign a value to $sigla is the first thing that I see. _ From: Cristi Ocolisan [mailto:[EMAIL PROTECTED] Sent: Monday, August 22, 2005 5:20 AM To: beginners@perl.org Subject: upload question Hi all, Does anybody know why this code does NOT c

Re: round up to nearest...

2005-08-22 Thread Rex Rex
For ordinary integers, if the rounding up is truly a "rounding" and not ceiling up to the nearest highest integer, then this should work: $n = 3.2; print sprintf("%d", $n); #this will print 3 To ceil the number, wherein 3.2 --> 4 then this would work. use POSIX; print ceil($n); # this will print

A small problem

2005-08-22 Thread Nath, Alok (STSD)
Hi Guys, I have this script which reads this text file and splits each line based on comma operator.The strange thing is it is removing the last character from the last word in the last line.So it is not displayed completely. Can anybody tell me why its so ?

Re: A small problem

2005-08-22 Thread John W. Krahn
Nath, Alok (STSD) wrote: > Hi Guys, Hello, > I have this script which reads this text file and splits each line > based on comma operator.The strange thing is it is removing the last > character from the last word in the last line.So it is not displayed > completely. > Can anybody tell me why it

Re: A small problem

2005-08-22 Thread Xavier Noria
On Aug 22, 2005, at 13:26, Nath, Alok (STSD) wrote: Hi Guys, I have this script which reads this text file and splits each line based on comma operator.The strange thing is it is removing the last character from the last word in the last line.So it is not displayed completely. Ca

Re: round up to nearest...

2005-08-22 Thread Jeff 'japhy' Pinyan
On Aug 21, Bryan Harris said: Is this the best way to do simple integer round-ups? E.g. 3.2 -> 4? I've been using: $nines = 1 - 1/1e10; $value = 3.2; $roundedvalue = int($value + $nines); ... but it looks like $roundedvalue = $value + (-$value % 1) might be better??? That technique I show

I/O: Can't Output to a File

2005-08-22 Thread Ryan Frantz
Perlers, I'm stumped; I have a script that should output to a file but it doesn't. The file is created, but it's empty after the script completes. To be sure I was getting some sort of output, I had the script write to the terminal and all was well. The odd thing, however, is that I still can't

RE: Can't Output to a File

2005-08-22 Thread Ryan Frantz
> -Original Message- > From: Ryan Frantz > Sent: Monday, August 22, 2005 11:32 AM > To: Beginners Perl > Subject: I/O: Can't Output to a File > > Perlers, > > I'm stumped; I have a script that should output to a file but it > doesn't. The file is created, but it's empty after the scrip

Re: I/O: Can't Output to a File

2005-08-22 Thread John W. Krahn
Ryan Frantz wrote: > Perlers, Hello, > I'm stumped; I have a script that should output to a file but it > doesn't. The file is created, but it's empty after the script > completes. To be sure I was getting some sort of output, I had the > script write to the terminal and all was well. The odd