Re: Run process in background

2002-04-22 Thread Alex Read
Food for thought indeed! Fortunately the number of options the user has is small and so I can write my script like so; system Myscript option1 if ($Form_input eq Nice_things1); system Myscript option2 if ($Form_input eq Nice_things2); etc ... Also this form is being used more as a make my life

Re: A super huge form.

2002-04-22 Thread John Brooking
Connie, From a technical point of view, I think that if you submit via post you are not limited in size. If you submit via get, it adds it all to the URL in the form of http://yourdomain/yourscript.pl?param1=fooparam2=bar; etc. and you are limited to about ~2K total length (depending on the

Re: Some Newbie Questions :-)

2002-04-22 Thread John Brooking
(Sorry for the duplicate, Jamie, forgot to forward to the list!) --- Jamie [EMAIL PROTECTED] wrote: ... 2) Should i use text files for my data or dive straight into something like MySQL? I'll propably need the SQL stuff later on, but is there any general rule as regards to size/ number of

Re: popup_menu default

2002-04-22 Thread Todd Wade
Todd Wade [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... - Original Message - From: Jack Daly [EMAIL PROTECTED] To: Todd Wade [EMAIL PROTECTED] Sent: Sunday, April 21, 2002 11:51 PM Subject: Re: popup_menu default On Sun, 21 Apr 2002, Todd Wade wrote:

Re: Run process in background

2002-04-22 Thread drieux
On Monday, April 22, 2002, at 12:27 , Alex Read wrote: Food for thought indeed! Fortunately the number of options the user has is small and so I can write my script like so; system Myscript option1 if ($Form_input eq Nice_things1); system Myscript option2 if ($Form_input eq Nice_things2);

Re: proxy server

2002-04-22 Thread Todd Wade
Conan Chai [EMAIL PROTECTED] wrote in message 003301c1ea03$29edb410$0164a8c0@user1">news:003301c1ea03$29edb410$0164a8c0@user1... hi, how do i read in the request from a browser? Go get the Perl Cookbook. Theres a whole section on being a TCP server. Its a little too complicated to discuss here

Re: FILE Transfer (FTP) using PERL

2002-04-22 Thread fliptop
[EMAIL PROTECTED] wrote: I was wondering if a HTML form, and PERL, can be used so that visitors to my web site can upload pictural files (ala FTP) to me? if you're using cgi.pm, you don't need to use ftp: use MIME::Lite; my %email = ( From = 'whomever', To = '[EMAIL

Re: FILE Transfer (FTP) using PERL

2002-04-22 Thread fliptop
fliptop wrote: [EMAIL PROTECTED] wrote: $msg-attach( Type = 'image/jpeg', # or whatever FH = $cgi-upload('Filename') ); i didn't test this, but you could probably do it instead: $msg-attach( Type = $cgi-uploadInfo('Filename')-{'Content-Type'}, FH =

Re: Write permissions and other rights

2002-04-22 Thread drieux
On Saturday, April 20, 2002, at 07:22 , Octavian Rasnita wrote: much of this depends upon the policy of the people running the core server... If they allow user's to have their own cgi space then that is ok. I have a small test set that i run independent of the main ones - so my limited

Re: Write permissions and other rights

2002-04-22 Thread drieux
On Sunday, April 21, 2002, at 07:42 , Todd Wade wrote: First of all, this has nothing to do with perl, but given that I wrote my first cgi tested it with perl first.cgi and got the bugs out, ftp'd it up and then LEARNED the hard way that it had to be 755 - we all start out some

RE: Write permissions and other rights

2002-04-22 Thread David Kirol
Thanks Drieux I didn't want to take the time to write what you did, but I'm glad to see it on the list. David (aka sometimeAnotTooBrightNewbie) -Original Message- From: drieux [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 12:59 AM To: cgi Subject: Re: Write permissions and

References

2002-04-22 Thread Hans Holtan
Hi folks, The code shown bellow is supposed to de-reference a hash-reference of array-references and print everything out nicely. But the array references do not get de-referenced. I really appreciate the help. Thanks, Hans #!usr/bin/perl -w use strict; use warnings; use diagnostics; my

Re: References

2002-04-22 Thread Felix Geerinckx
on Mon, 22 Apr 2002 06:18:01 GMT, [EMAIL PROTECTED] (Hans Holtan) wrote: Hi folks, The code shown bellow is supposed to de-reference a hash-reference of array-references and print everything out nicely. But the array references do not get de-referenced. I really appreciate the help.

case

2002-04-22 Thread walter valenti
Hi, there is in Perl a statement case like in C or in Pascal ??? Walter -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: case

2002-04-22 Thread Marc te Vruchte
Well, there isn't a real case statement as in C or Pascal, but, you can emulate one through a block =) SWITCH: for ($str_fruit) { if (/apple/) { ... last SWITCH; } if (/banana/) { ... last SWITCH; }

Re: case

2002-04-22 Thread Gary Stainburn
On Monday 22 April 2002 12:07 pm, Marc te Vruchte wrote: Well, there isn't a real case statement as in C or Pascal, but, you can emulate one through a block =) SWITCH: for ($str_fruit) { if (/apple/) { ... last SWITCH; } if (/banana/) {

RE: Passing a variable to a DOS batch file

2002-04-22 Thread Richard_Cox
On 21 April 2002 01:07, Paul Lombardo [mailto:[EMAIL PROTECTED]] wrote: I am new to this group and coming back to perl after a year long hiatus. I am using perl on an NT4 server and I have a batch file that calls a perl script. (this works flawlessly) The perl script does some

RE: help parsing file

2002-04-22 Thread Bob Showalter
-Original Message- From: drieux [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 5:37 PM To: [EMAIL PROTECTED] Subject: Re: help parsing file On Friday, April 19, 2002, at 02:17 , Bob Showalter wrote: [..] On Friday, April 19, 2002, at 12:29 , Pedro A Reche Gallardo

RE: Remote Shell

2002-04-22 Thread Bob Showalter
-Original Message- From: Mayank Ahuja [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 20, 2002 7:28 AM To: PERL Subject: Remote Shell Hi All If somebody can please help me out of it? In one of my applications, I get machine name as input from the user. What my

FW: proxy server

2002-04-22 Thread Jackson, Harry
-Original Message- From: Todd Wade [mailto:[EMAIL PROTECTED]] Go get the Perl Cookbook. Very good advice in any weather. If you have not got it, get it, its a fantastic book and I am always turning to it. Harry

RE: browsing html pages

2002-04-22 Thread murphy, daniel (BMC Eng)
I was in the same boat as you and knew absolutely nothing about HTTP, HTML, etc - nothing. The Perl Cookbook (O'Reilly) chapter 20 Web automation got me going and I had a perl script in less than an hour. Piece o' cake. If I can do it, anybody can do it. Dan Murphy

RE: help parsing file

2002-04-22 Thread Jackson, Harry
-Original Message- From: drieux [mailto:[EMAIL PROTECTED]] speaking of which - how DO we improve the quality of the problem specs - both amongst beginners and 'product managers' - the former at least seem open to learning while the latter. For the former is there an acceptable use

proxy server

2002-04-22 Thread Conan Chai
hi, how do i read in the request from a browser? the browser is set to point to my proxy server. i have tried the following codes while(sysread($client,$request,1024) 0) { #do something } and $bytes = sysread($client,$request,1024); if($bytes 0) { #do something } obviously the

Re: case

2002-04-22 Thread drieux
On Monday, April 22, 2002, at 04:18 , Gary Stainburn wrote: On Monday 22 April 2002 12:07 pm, Marc te Vruchte wrote: Well, there isn't a real case statement as in C or Pascal, but, you can emulate one through a block =) we went around the Idea of also using a HashSwitch - if you were doing

remove duplicate values from array

2002-04-22 Thread Jon Howe
Can anyone tell me the best method for removing duplicate array values. eg: array = qw( a a a b b b c); becomes after some operation I cant seem to figure: new_array_or_same = (a b c);

Re: remove duplicate values from array

2002-04-22 Thread Jeff 'japhy' Pinyan
On Apr 22, Jon Howe said: Can anyone tell me the best method for removing duplicate array values. I think the FAQ answers this best. perldoc -q uniq -- Jeff japhy Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/

RE: remove duplicate values from array

2002-04-22 Thread David Gray
Can anyone tell me the best method for removing duplicate array values. eg: @array = qw( a a a b b b c); becomes after some operation I cant seem to figure: @new_array_or_same = (a b c); In this situation, I usually use a hash instead of an array so I can create highly useful

Help Helpers Help You - was Re: help parsing file

2002-04-22 Thread drieux
On Monday, April 22, 2002, at 08:23 , Jackson, Harry wrote: -Original Message- From: drieux [mailto:[EMAIL PROTECTED]] speaking of which - how DO we improve the quality of the problem specs - both amongst beginners and 'product managers' - the former at least seem open to learning

Re: remove duplicate values from array

2002-04-22 Thread Miroslav Nikolov
i`m not quite shure because i`m a newbie to, but try using some RegExp like tr/some pattern/final idea/ and dont forget that tr// and s// have many more functions ex. using the (?). The book that i find most explainable about RegExp is Beginning Perl from Wrox Publishing. -

Re: remove duplicate values from array

2002-04-22 Thread drieux
On Monday, April 22, 2002, at 09:29 , David Gray wrote: Can anyone tell me the best method for removing duplicate array values. eg: @array = qw( a a a b b b c); becomes after some operation I cant seem to figure: @new_array_or_same = (a b c); In this situation, I usually use a hash

Re: remove duplicate values from array

2002-04-22 Thread Jenda Krynicky
From: drieux [EMAIL PROTECTED] On Monday, April 22, 2002, at 09:29 , David Gray wrote: Can anyone tell me the best method for removing duplicate array values. eg: @array = qw( a a a b b b c); becomes after some operation I cant seem to figure: @new_array_or_same = (a b c);

Re: help parsing file

2002-04-22 Thread drieux
On Monday, April 22, 2002, at 10:01 , Timothy Johnson wrote: Funny you should mention it. My product manager just requested blood from a stone two weeks ago. Now he's threatening to outsource it... warning to those new to perl - DO NOT TRY THIS. These are Paid Professionals Using the

RE: Passing a variable to a DOS batch file

2002-04-22 Thread José Nyimi
Hm ... Do you have some link(s) to cmd.exe shell documentations ? (even advanced !) José. [EMAIL PROTECTED] a écrit : On 21 April 2002 01:07, Paul Lombardo [mailto:[EMAIL PROTECTED]] wrote: I am new to this group and coming back to perl after a year long hiatus. I am using perl on an

another regex question

2002-04-22 Thread James Taylor
I'm have this program that reads over mail logs looking for spammers, and depending on certain conditions, they're marked as a spammer. If the reverse lookup on the relay used matches their email address however, no matter what, we're not marking them as a spammer. However, I've run across a

another regex question

2002-04-22 Thread James Taylor
Hmm, it looks like something was wrong with my mail server, so I'm sending this question again - If you already got this, I apologize: I'm have this program that reads over mail logs looking for spammers, and depending on certain conditions, they're marked as a spammer. If the reverse

Re: remove duplicate values from array

2002-04-22 Thread José Nyimi
Hé ! Jenda this slice thing is really very nice. hash{@array1}=array2; I saw it many times used in constructor of Object Oriented Perl's code. Could you explain sequencely the syntax please ? José. - Yahoo! Mail -- Une adresse yahoo.fr gratuite et en

RE: remove duplicate values from array

2002-04-22 Thread Nikola Janceski
Gosh.. what ever happened to good ol' grep my %seen; @uniq = grep !$seen{$_}++, @array; -Original Message- From: Jon Howe [mailto:[EMAIL PROTECTED]] Sent: Monday, April 22, 2002 12:30 PM To: [EMAIL PROTECTED] Subject: remove duplicate values from array Can anyone tell me the

Re: remove duplicate values from array

2002-04-22 Thread Jenda Krynicky
From: Jos Nyimi [EMAIL PROTECTED] this slice thing is really very nice. @hash{@array1}=@array2; I saw it many times used in constructor of Object Oriented Perl's code. Could you explain sequencely the syntax please ? Well I don't think I can make up a better explanation than the one

Inverse tangent function?

2002-04-22 Thread siren jones
Trying to figure out what the inverse tangent function is... (as in FORTRAN arctan) Tried using: $ result = atan2(u/v); print result = $result \n ; Got error: Too few arguments. Any suggestions on either the function or where to look up math functions for PERl? Couldn't find it in

RE: Inverse tangent function?

2002-04-22 Thread Nikola Janceski
perldoc perlfunc atan2 Y,X Returns the arctangent of Y/X in the range -pi to pi. For the tangent operation, you may use the Math::Trig::tan function, or use the familiar relation: sub tan { sin($_[0]) /

Re: Inverse tangent function?

2002-04-22 Thread Felix Geerinckx
on Mon, 22 Apr 2002 19:20:23 GMT, Siren Jones wrote: Trying to figure out what the inverse tangent function is... (as in FORTRAN arctan) [...] Any suggestions on either the function or where to look up math functions for PERl? Couldn't find it in Programming PERL, by O'reilly. It's as

Re: Inverse tangent function?

2002-04-22 Thread Ricardo Derbes
Hi. Siren atan2 expects two arguments, x and y as stated in http://www.perldoc.com/perl5.6.1/pod/func/atan2.html#top . regards Ricardo Derbes Altec SE Albarracín 157 - San Carlos de Bariloche +54-2944-426892 [EMAIL PROTECTED] - Original Message - From: siren jones [EMAIL PROTECTED] To:

Re: remove duplicate values from array

2002-04-22 Thread José Nyimi
Ok, thanks ! I read it and every thing becomes clear to me :-) José. Jenda Krynicky [EMAIL PROTECTED] a écrit : From: José Nyimi this slice thing is really very nice. @hash{@array1}=@array2; I saw it many times used in constructor of Object Oriented Perl's code. Could you explain

RE: Inverse tangent function?

2002-04-22 Thread Wagner-David
Expecting form of atan2(y,x) Wags ;) -Original Message- From: siren jones [mailto:[EMAIL PROTECTED]] Sent: Monday, April 22, 2002 12:20 To: [EMAIL PROTECTED] Subject: Inverse tangent function? Trying to figure out what the inverse tangent function is... (as in FORTRAN arctan)

ODBC - win2k

2002-04-22 Thread Eduardo Cancino
Hi everybody, i'm new to perl and i want to connect to an access database. I'm using DBI::ODBC but returns that it can connect to my database: Can't connect to database: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (SQL-IM002)(DBD:

RE: ODBC - win2k

2002-04-22 Thread Mike Rapuano
I would recommend Win32::ODBC from http://www.roth.net Its really easy to use Mike -Original Message- From: Eduardo Cancino [mailto:[EMAIL PROTECTED]] Sent: Monday, April 22, 2002 4:11 PM To: List Beginners Perl Subject: ODBC - win2k Hi everybody, i'm new to perl and i want to

RE: ODBC - win2k

2002-04-22 Thread Timothy Johnson
In order to get a better answer you should post some code that is as close as possible to what you were doing. Obviously don't give out any important details about your company if this is a work project, but from what you've given us we can't tell if it is a syntax problem or if you just don't

Win32:OLE and Excel, problems writing from the web

2002-04-22 Thread Murphy, Land
I'm having problem getting Excel to format the page correctly. I've commented out the lines that don't work and the script runs perfectly. Any idea why those particular (PageSetup) items are troublesome? This is for an intranet reporting piece that I am trying to put together to replace an IBI

RE: Win32:OLE and Excel, problems writing from the web

2002-04-22 Thread Murphy, Land
Edit: Trying this again, I posted the incorrect script version. My apologies. I'm having problem getting Excel to format the page correctly. I've commented out the lines that don't work and the script runs perfectly. Any idea why those particular (PageSetup) items are troublesome? This is for

RE: ODBC - win2k

2002-04-22 Thread José Nyimi
DBI::ODBC is also really very easy to use. Mike, as suggested write down how you are making your connection then it will come more clear to help. José. Mike Rapuano [EMAIL PROTECTED] a écrit : I would recommend Win32::ODBC from http://www.roth.net Its really easy to use Mike

Complicated RegEx

2002-04-22 Thread Kevin Old
Hello all, I have the following line in a text file Total 3250 5 0 0 0 0 879717 0 0 0 0 926418 0 0 0 0 920714 0 0 0 0 692510 0 0 0 0 (this is the entire line, but it's

Re: Complicated RegEx

2002-04-22 Thread Felix Geerinckx
on Mon, 22 Apr 2002 21:05:19 GMT, Kevin Old wrote: Anyone have ideas of how this can be adapted Don't use a regex, use 'split'. perldoc -f split -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Complicated RegEx

2002-04-22 Thread David Gray
I have the following line in a text file Total 3250 5 0 0 0 0 879717 0 0 0 0 926418 0 0 0 0 920714 0 0 0 0 692510 0 0 0 0 (this is the entire line, but it's

RE: ODBC - win2k

2002-04-22 Thread Hooten, Michael
Make sure you add an entry for the database to Control Panel / ODBC Data Sources / System DSN (or File DSN). -Original Message- From: Eduardo Cancino [mailto:[EMAIL PROTECTED]] Sent: Monday, April 22, 2002 4:11 PM To: List Beginners Perl Subject: ODBC - win2k Hi everybody, i'm new to

RE: ODBC - win2k

2002-04-22 Thread José Nyimi
If you wouldn't use control panel, you can use the complete path to your access db, like this: dbi:ODBC:driver=Microsoft Access Driver (*.mdb);dbq=\\serveur\shared\your_db_access_name.mdb José. Hooten, Michael [EMAIL PROTECTED] a écrit : Make sure you add an entry for the database to

Re: remove duplicate values from array

2002-04-22 Thread Alfred Vahau
Assuming that the array has been converted to a scalar, then the following Lookaround Assertion works: #!/usr/bin/perl $_ = 'a a a b b c c'; 1 while s/\b(\w+) \s (?= \1\b ) //gxi; print $_, \n; The scalar can be reconverted to an array. Not sure if this is any faster. Alfred, Project Breeze

Re: remove duplicate values from array

2002-04-22 Thread drieux
On Monday, April 22, 2002, at 03:43 , Alfred Vahau wrote: Assuming that the array has been converted to a scalar, then the following Lookaround Assertion works: #!/usr/bin/perl $_ = 'a a a b b c c'; 1 while s/\b(\w+) \s (?= \1\b ) //gxi; print $_, \n; Survey Says: Benchmark: timing

Re: remove duplicate values from array

2002-04-22 Thread drieux
On Monday, April 22, 2002, at 11:53 , Nikola Janceski wrote: Gosh.. what ever happened to good ol' grep my %seen; @uniq = grep !$seen{$_}++, @array; http://www.wetware.com/drieux/CS/lang/Perl/Beginners/BenchMarks/ will show you that this works just slightly slower than just the hashing

synchronized block

2002-04-22 Thread Ahmed Moustafa
How a block of code is atomized (e.g. synchronized blocks in Java)? Thanks in advance. -- Ahmed Moustafa http://pobox.com/~amoustafa -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Standalone exe's

2002-04-22 Thread Peter Lang
Hi All, This is a newbie question. Can you generate a stand alone ..exe file from Perl? Thanks Peter -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Windows IDE for Perl ?

2002-04-22 Thread Peter Lang
Hi All, Are there MS Windows based IDE for Perl, with debug and trace / step thru facilities, free or otherwise? Thanks Peter -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Windows IDE for Perl ?

2002-04-22 Thread Ahmed Moustafa
Peter Lang wrote: Hi All, Are there MS Windows based IDE for Perl, with debug and trace / step thru facilities, free or otherwise? Thanks Peter Take a look at Visual Perl http://www.activestate.com/Products/Visual_Perl/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Standalone exe's

2002-04-22 Thread Ahmed Moustafa
Peter Lang wrote: Hi All, This is a newbie question. Can you generate a stand alone ..exe file from Perl? Thanks Peter Perl2Exe http://www.indigostar.com/perl2exe.htm -- Ahmed Moustafa http://pobox.com/~amoustafa -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: Standalone exe's

2002-04-22 Thread Timothy Johnson
There are really only two choices at this point. There is perl2exe and there is ActiveState's PerlApp that comes as part of the Perl Dev kit. I don't know if you can get it separately. You may also hear of and be tempted to use perlcc. A small piece of advice. DON'T DO IT!!! STOP! THIS WAY

RE: Windows IDE for Perl ?

2002-04-22 Thread Timothy Johnson
The one I've been using is Perlbuilder by SolutionSoft. It has been pretty solid from when I got it. It's one of the more expensive, but it has the features you mentioned, and works pretty well. If you just want syntax highlighting, then you can always check out VIM. It's free.

RE: Standalone exe's

2002-04-22 Thread Kingsbury, Michael
The question was never asked, but what type of performance difference is seen with a perl2exe type compiler? I develope scripts for Clearcase (a commercial CVS-type source revision control system) that are run when a file is checked in/out etc, and it runs per file. -mike -Original

Re: Standalone exe's

2002-04-22 Thread drieux
On Monday, April 22, 2002, at 09:34 , Kingsbury, Michael wrote: The question was never asked, but what type of performance difference is seen with a perl2exe type compiler? I develope scripts for Clearcase (a commercial CVS-type source revision control system) that are run when a file is

RE: Windows IDE for Perl ?

2002-04-22 Thread milos.rokusek
Hi, you should try this tiny (1,6 MB with manual and source code) Perl IDE http://open-perl-ide.sourceforge.net/ (mirror at http://www.lost-sunglasses.de/). It's not as comfortable as commercial app's, but It's user friendly freeware. HIH Milos -Pùvodní zpráva- Od: Peter Lang

RE: Standalone exe's

2002-04-22 Thread Timothy Johnson
If you give me the code I can run it on PerlApp. I don't have Perl2exe. I haven't noticed a huge difference in execution times, except that there is a small initial delay while files are unpacked and the executable is run. -Original Message- From: drieux To: [EMAIL PROTECTED] Sent: