Re: PERL CGI SCRIPT killed by apache on client abort

2011-03-28 Thread Peter Scott
On Sat, 26 Mar 2011 15:56:08 +0100, Przemysław Rejf wrote: My upload script which uses upload hook works really nice. After the upload ends it writes some debug stuff to log file and sends some info to other host. When client aborts the upload the reminder of the script after hook is not

perl dd

2011-03-28 Thread a b
Hi, I want to know if any module for dd in perl is available. Any pointers will a great help Thanks, a b

Re: perl dd

2011-03-28 Thread Rob Coops
On Mon, Mar 28, 2011 at 10:18 AM, a b testa...@gmail.com wrote: Hi, I want to know if any module for dd in perl is available. Any pointers will a great help Thanks, a b Have you tried having a look at search.cpan.org? Oh, by the way what does dd stand for? Acronyms are great and all but

Re: perl dd

2011-03-28 Thread a b
Hey Rob, Yes, you are right Thanks to mention this out. I was referring to unix dd command. was wondering if we have any module already available. i didn't found on cpan Thx a b On Mon, Mar 28, 2011 at 2:05 PM, Rob Coops rco...@gmail.com wrote: On Mon, Mar 28, 2011 at 10:18 AM, a b

Re: perl dd

2011-03-28 Thread Rob Coops
I had a quick look but I can only see people making system calls using system() or exec() etc... which sort of makes sense as there is no such command on pretty much any system except for *nix systems. I think you might simply have to write your own implementation or simply rely on system calls to

Re: perl dd

2011-03-28 Thread a b
Thanks Rob I too was thinking that way. Just in case if any one might have face this issue and hence this email Well if no module i will live with it for time being Regards, a b On Mon, Mar 28, 2011 at 2:46 PM, Rob Coops rco...@gmail.com wrote: I had a quick look but I can only see people

Re: Garbled lines

2011-03-28 Thread Jenda Krynicky
From: HACKER Nora nora.hac...@stgkk.at I am not sure whether this is really a Perl problem but maybe anybody can point me into the right direction: I am generating insert statements and writing them into a file for later execution. Most of the lines are written correctly: snipped

Re: perl dd

2011-03-28 Thread Chas. Owens
On Mon, Mar 28, 2011 at 05:22, a b testa...@gmail.com wrote: Thanks Rob I too was thinking that way. Just in case if any one might have face this issue and hence this email Well if no module i will live with it for time being snip The Unix dd command is a swiss army knife of copying data,

problem with naming of variables

2011-03-28 Thread jj mahoney
Hi, How do I name this variable correctly, @{bet$random_bet_position); With regards to the script below, @selected_bet is suppose to select either @bet1, @bet2 or @bet3 depending on the chosen number held by $random_bet_position, so how do I do this? Thanks @bet1 = (0,0,0,0); @bet2 =

Re: problem with naming of variables

2011-03-28 Thread Robert Wohlfarth
2011/3/28 jj mahoney itshardtoget...@hotmail.com Hi, How do I name this variable correctly, @{bet$random_bet_position); With regards to the script below, @selected_bet is suppose to select either @bet1, @bet2 or @bet3 depending on the chosen number held by $random_bet_position, so how do I

RE: problem with naming of variables

2011-03-28 Thread Katya Gorodinsky
Maybe this way: @bet1 = (0,0,0,0); @bet2 = (0,0,0,1); @bet3 = (0,0,1,0); $random_bet_position = int(rand(3) + 1); $name = 'bet' . $random_bet_position; @selected_bet = @{$name}; -Original Message- From: jj mahoney [mailto:itshardtoget...@hotmail.com] Sent: Monday, March 28, 2011

Re: problem with naming of variables

2011-03-28 Thread Chas. Owens
2011/3/28 jj mahoney itshardtoget...@hotmail.com: Hi, How do I name this variable correctly, @{bet$random_bet_position); With regards to the script below, @selected_bet is suppose to select either @bet1, @bet2 or @bet3 depending on the chosen number held by $random_bet_position, so how do I

Re: problem with naming of variables

2011-03-28 Thread Brian Fraser
On Mon, Mar 28, 2011 at 12:10 PM, Katya Gorodinsky katya.gorodin...@ecitele.com wrote: $random_bet_position = int(rand(3) + 1); $name = 'bet' . $random_bet_position; @selected_bet = @{$name}; No no no. Gosh no. Don't do that. http://perl.plover.com/varvarname.html Brian.

Re: ternary operator

2011-03-28 Thread Chris Stinemetz
I would like to make an adjustment to this ternary operator. Instead of returning 0 if length( $dist ) is not 1. I would like to return the last $dist value incremented by 0.1 mile so there is no gap of more than 0.1 miles. $dist = sprintf %.1f, ( length( $dist ) 1 ) ? $dist/6.6/8/2*10/10 : 0 ;

Re: ternary operator

2011-03-28 Thread Jim Gibson
On 3/28/11 Mon Mar 28, 2011 12:44 PM, Chris Stinemetz chrisstinem...@gmail.com scribbled: I would like to make an adjustment to this ternary operator. Instead of returning 0 if length( $dist ) is not 1. I would like to return the last $dist value incremented by 0.1 mile so there is no gap

Re: ternary operator

2011-03-28 Thread Uri Guttman
CS == Chris Stinemetz chrisstinem...@gmail.com writes: CS I would like to make an adjustment to this ternary operator. CS Instead of returning 0 if length( $dist ) is not 1. I would like to CS return the last $dist value incremented by 0.1 mile so there is no gap CS of more than 0.1

Filling in an online form.

2011-03-28 Thread Dennis Wicks
Greetings; I want to setup a form on a web page that a visitor can fill in then send it back to me by email so I can browse it online and print it out locally in the correct format. I have the way to define the input form figured out, but the transmission and browsing and printing the form

Re: Filling in an online form.

2011-03-28 Thread terry
I want to setup a form on a web page that a visitor can fill in then send it back to me by email so I can browse it online and print it out locally in the correct format. I have the way to define the input form figured out, but the transmission and browsing and printing the form are giving me

Re: Filling in an online form.

2011-03-28 Thread Brian F. Yulga
Dennis Wicks wrote: Greetings; I want to setup a form on a web page that a visitor can fill in then send it back to me by email so I can browse it online and print it out locally in the correct format. I have the way to define the input form figured out, but the transmission and browsing and

Re: Filling in an online form.

2011-03-28 Thread Carlos Ivan Sosa
http://perlmeme.org/tutorials/cgi_form.html I don't know of your skills with perl, but I think you might find these tutorial useful; however, be aware of the security risks with the flaws of bad code and usage of perl CGI. This should be for a starter project, then refine the project for a