Re: Help with Perl 6 script

2019-08-12 Thread Ralph Mellor
the > I have this Perl 6 script from Rosetta, which I wanted to run on Perl 5 > (due to the Active Sate Perl and App version that I have). If ActiveState have packaged https://metacpan.org/pod/Inline::Perl6 then please install and use that. (If they haven't, please ask them to do so.) > However

Re: Help with Perl 6 script

2019-08-12 Thread Ralph Mellor
Oops, missed the ending. loop with a parens argument is like a C for with 3 args, init, test, next. The next bit is: ($t, @ABC) »+=« (.01, dABC($t, @ABC, .01)) The » and « opops (or metaops) pack a whole lot of power but can also be used for relatively simple cases like this one in which th

Re: Help with Perl 6 script

2019-08-12 Thread Marc Chantreux
hello Rui, > I have this Perl 6 script from Rosetta, which I wanted to run on Perl 5 > (due to the Active Sate Perl and App version that I have). Perl6 and Perl5 are very different. you need to download a perl6 interpretor if you want to run perl6 code. please check https://rakudo.org/. regards

Re: Help with Perl 6 script

2019-08-12 Thread Andy Bach
Yes, Perl 5 and Perl 6 are quite different in many ways. Some suggested that Perl 6 be looked at as not the next iteration of Perl but a new language that can be made backward compatible with Perl 5 (there are switches etc that let you run P5 code unchanged) but it is not the case of P5 being a

Re: Help with Perl 6 script

2019-08-12 Thread William Michels via beginners
Hi Rui, Have you considered just installing Perl 6 ? https://rakudo.org https://www.perl6.org Spoiler alert: the Perl6 code you posted works with no errors on my Perl6 install. Best Regards, Bill. On Thu, Aug 8, 2019 at 1:07 PM Rui Fernandes wrote: > > Greetings > > I have this Perl 6 script

Re: Help with Perl 6 script

2019-08-12 Thread Bruce Gray
[ Executive Summary: Install Perl 6; it will not disturb your Activestate Perl 5 : https://rakudo.org/files ] > On Aug 8, 2019, at 3:07 PM, Rui Fernandes wrote: > > Greetings Hi Rui! > > I have this Perl 6 script from Rosetta, which I wanted to run on Perl 5 (due > to the Active Sate Perl

RE: help with perl/cgi creating a html code with pull down menu

2004-10-18 Thread Jim
> Hi: I have created a perl cgi script to grab two string > inputs from users. The script shown below expects the user to > type in the value. I would like to change this and give the > user a pulldown menu to pick from a list of items. Could > somebody provide help with what I need to chang

Re: help with perl, openbsd and postgres [SOLVED]

2003-02-15 Thread Mailing lists
Thanks - it is actually what i have done and it works fine! It's a bit tricky, but it doesn't matter, as long as it works! Gabriele. At 09.00 15/02/2003 +, David Nicely wrote: Mailing lists wrote: Dear sirs i need to drive a postgres database using a perl script. I also have to tell you t

Re: help with perl, openbsd and postgres

2003-02-14 Thread David Nicely
Mailing lists wrote: Dear sirs i need to drive a postgres database using a perl script. I also have to tell you that i need to run this stuff on a OpenBSD 3.1 box. First of all, i need to ask you which module should i use. Honestly, i tried to install the pgsql_perl5-1.9.0.tar.gz but it didn

Re: help with perl, openbsd and postgres

2003-02-14 Thread Wiggins d'Anconia
Mailing lists wrote: It's not the point. Added that variable, and still i receive the same error. It seems like it doesn't wanna find the libpq-fe.h file... At 17.55 14/02/2003 -0500, David Kirol wrote: I don't see LD_LIBRARY_PATH in you env vars. Consult the docs for details but I bet that

RE: help with perl, openbsd and postgres

2003-02-14 Thread Mailing lists
It's not the point. Added that variable, and still i receive the same error. It seems like it doesn't wanna find the libpq-fe.h file... At 17.55 14/02/2003 -0500, David Kirol wrote: I don't see LD_LIBRARY_PATH in you env vars. Consult the docs for details but I bet that's where the problem lies

Re: help with perl, openbsd and postgres

2003-02-14 Thread david
Mailing Lists wrote: > > I also have to tell you that i need to run this stuff on a OpenBSD 3.1 > box. > another OpenBSD user :-) > > cc -c -I/usr/local/include/postgresql/libpq-fe.h -fno-strict-aliasing > -I/usr/local/include -O2-DVERSION=\"1.9.0\" -DXS_VERSION=\"1.9.0\" > -DPIC -fPIC -

RE: help with perl/Tk

2002-03-08 Thread murphy, daniel (BMC Eng)
MA 01748 EMC² where information lives -Original Message- From: Jonathan E. Paton [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 5:16 PM To: [EMAIL PROTECTED] Subject: RE: help with perl/Tk > Look for simple mistakes.. Try the Perl/Tk book by > O'Rie

RE: help with perl/Tk

2002-03-07 Thread Jonathan E. Paton
> Look for simple mistakes.. Try the Perl/Tk book by > O'Rielly. Not bad... but not great like the other > books by O'R. I learned perlTk from "Perl in a Nutshell", if you are going to shell out more money then head there - it's a reference book that most of the important stuff in some depth. Ho

Re: help with perl/Tk

2002-03-07 Thread Tagore Smith
richard noel fell wrote: > Below is a simple script which I am using as part of my attempt to learn > how to program a gui with perl and Tk. I have copied the program from a > book, "Cross Platform Perl" (not very good, but some isolated good > parts), but get the following error message when I tr

Re: help with perl/Tk

2002-03-07 Thread Roger Morris
At 01:14 PM 3/7/2002 -0500, richard noel fell wrote: >Below is a simple script which I am using as part of my attempt to learn >how to program a gui with perl and Tk. I have copied the program from a >book, "Cross Platform Perl" (not very good, but some isolated good >parts), but get the following

Re: help with perl/Tk

2002-03-07 Thread Joe Raube
My guess would be this line: $filebutton=$menubar->Menubutton;(-text="File", -underline=>0); with the semi-colon after the word Menubutton __ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free ema

RE: help with perl/Tk

2002-03-07 Thread Nikola Janceski
Look for simple mistakes.. Try the Perl/Tk book by O'Rielly. Not bad... but not great like the other books by O'R. $filebutton=$menubar->Menubutton;(-text="File", -underline=>0); should be: $filebutton=$menubar->Menubutton;(-text=>"File",

Re: help with perl/Tk

2002-03-07 Thread Tanton Gibbs
On line 8, you have -text = "File" instead of -text => "File" looks like a typo because you have it right every where else. As for the warning, I don't use Tk and don't know if that is supposed to be "end" or end(); - Original Message - From: "richard noel fell" <[EMAIL PROTECTED]> To: <

Re: Help with Perl

2001-12-05 Thread Brett W. McCoy
On Wed, 5 Dec 2001, Nguyen, Andy wrote: > # $letter could be any letter from A to L. > if ( $letter eq "A" || $letter "B" || $letter "C" || $letter eq "D" || >$letter eq "L" ) > { > do something > } > > I really don't want to repeat $letter for every letter (B-L). I would use a r

Re: Help with Perl

2001-12-05 Thread Michael McQuarrie
Andy, Try this: if ( $letter =~ /^[A-L]$/ ) { do something; } You should be able to the same thing in ksh, just change the format a bit. -Michael McQuarrie --- "Nguyen, Andy" <[EMAIL PROTECTED]> wrote: > Hi List, > > I am new to perl and looking for a shortcut way of doing this. > > # $lett

RE: Help with Perl

2001-12-05 Thread Nguyen, Andy
Thank you all for your help. Andy -Original Message- From: Maurice Reeves [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 1:36 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Help with Perl if ($letter =~ m/[A-L]/) uses a regex which will give you what you want

Re: Help with Perl

2001-12-05 Thread Maurice Reeves
if ($letter =~ m/[A-L]/) uses a regex which will give you what you want. >From: "Nguyen, Andy" <[EMAIL PROTECTED]> >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> >Subject: Help with Perl >Date: Wed, 5 Dec 2001 14:16:37 -0500 >Hi List, > >I am new to perl and looking for a shortcut way of doing th

Re: Help with Perl

2001-12-05 Thread Kevin Meltzer
Dag nabbit.. forgot the anchors :) if ($letter =~ /^[A-L]$/) { -- Hello Andy, if ($letter =~ /[A-L]/) { blah } See Also: perldoc perlre Cheers, Kevin On Wed, Dec 05, 2001 at 02:16:37PM -0500, Nguyen, Andy ([EMAIL PROTECTED]) said something similar to: > Hi Li

RE: Help with Perl

2001-12-05 Thread Chris Spurgeon
Probably many ways to do this but one would be if (($letter ge "A") && ($letter le "L")) { do something } Chris Spurgeon Senior Design Technologist [EMAIL PROTECTED] ELECTRONIC INK One South Broad Street 19th Floor Philadelphia, PA 19107 www.electronicink.com t 21

Re: Help with Perl

2001-12-05 Thread Kevin Meltzer
Hello Andy, if ($letter =~ /[A-L]/) { blah } See Also: perldoc perlre Cheers, Kevin On Wed, Dec 05, 2001 at 02:16:37PM -0500, Nguyen, Andy ([EMAIL PROTECTED]) said something similar to: > Hi List, > > I am new to perl and looking for a shortcut way of doing this. > > # $letter could

Re: Help with Perl

2001-12-05 Thread Etienne Marcotte
Jeff 'Japhy' wrote me this in a previous similar question: < You might be interested in the Quantum::Superpositions module, which allows you to write: if ($letter == any(A,B,C,D,...)) { ... } > Or maybe something like if ($letter =~ m/^[A-Z]$/) {...} HTH, Etienne "Nguyen, Andy" wrote: >

Re: Help with Perl

2001-12-05 Thread Curtis Poe
--- "Nguyen, Andy" <[EMAIL PROTECTED]> wrote: > Hi List, > > I am new to perl and looking for a shortcut way of doing this. > > # $letter could be any letter from A to L. > if ( $letter eq "A" || $letter "B" || $letter "C" || $letter eq "D" || >$letter eq > "L" ) > { > do somethi

RE: Help with PERL

2001-11-15 Thread John Edwards
See the list FAQ. Section 2.2 http://learn.perl.org/beginners-faq Having said that, a good place to start would be http://www.amazon.com/exec/obidos/ASIN/1884777805/ref%3Dase%5Fthevirtualmirr or/103-8967786-7966216 and http://www.google.com/search?q=perl+merge+hash John -Original Message---

RE: RE: Help with Perl (fwd)

2001-05-09 Thread Jeff Pinyan
On May 9, [EMAIL PROTECTED] said: >Somebody please help me uderstand the deal with "qq". I have run tests >on all three lines of code below and it turns out that #1 and #3 work >but #2 does not. I am under the impression that "qq" acts as double >quotes. So why doesn't #2 work isn't it the same a

RE: RE: Help with Perl (fwd)

2001-05-09 Thread Brett W. McCoy
On Wed, 9 May 2001 [EMAIL PROTECTED] wrote: > Somebody please help me uderstand the deal with "qq". I have run tests > on all three lines of code below and it turns out that #1 and #3 work > but #2 does not. I am under the impression that "qq" acts as double > quotes. So why doesn't #2 work isn't

RE: RE: Help with Perl (fwd)

2001-05-09 Thread cbourne
Somebody please help me uderstand the deal with "qq". I have run tests on all three lines of code below and it turns out that #1 and #3 work but #2 does not. I am under the impression that "qq" acts as double quotes. So why doesn't #2 work isn't it the same as #1? NO COMPRENDE!!! Thanks, [EMAIL