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: 4/

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 [mailto

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

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 Message-

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. -Original

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 L

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 -- Ahmed Moustafa http://pobox.com/~amoustafa -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

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 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

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]

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]

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]

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 has

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: Benchma

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 Bree

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 Co

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 p

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

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]

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 ju

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 -Orig

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 an

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 pr

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 h

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 connec

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: db_login/SQLConn

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

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]>

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)

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'

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]) / cos

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 "Progr

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

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 m

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 f

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 lookup

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

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 o

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 th

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: > >> >

RE: help parsing file

2002-04-22 Thread Timothy Johnson
Funny you should mention it. My product manager just requested blood from a stone two weeks ago. Now he's threatening to outsource it... -Original Message- From: Jackson, Harry [mailto:[EMAIL PROTECTED]] Sent: Monday, April 22, 2002 8:23 AM To: '[EMAIL PROTECTED]' Subject: RE: help par

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,

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/// 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. - Cheers, Miroslav Nikol

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

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

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/ http://

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: 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

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 do

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

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: 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

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 br

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 m

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 Rec

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 s

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: 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; }

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: 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. T