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
nd there is the p6 users list perl6-us...@perl.org at: https://lists.perl.org/all.html#p From: Rui Fernandes Sent: Thursday, August 8, 2019 3:07 PM To: Perl Beginners Subject: Help with Perl 6 script Greetings I have this Perl 6 script from Rosetta, which I wante

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

Help with Perl 6 script

2019-08-08 Thread Rui Fernandes
Greetings 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). However, several syntax errors appear given the difference (some) in language.Here's the script: --- # Simple Vector implementation multi infix:<+>(@a, @b)

Re: Need Help with Perl Mobile Environment

2011-01-25 Thread Rob Coops
On Tue, Jan 25, 2011 at 8:46 AM, Khabza Mkhize wrote: > Can you please help with where to find information about Perl mobile > version > I need to develop Accommodation Booking Website that will run on Smart > phone, Iphone And Blackberry. > > Please send me a links with relevant information > >

Need Help with Perl Mobile Environment

2011-01-24 Thread Khabza Mkhize
Can you please help with where to find information about Perl mobile version I need to develop Accommodation Booking Website that will run on Smart phone, Iphone And Blackberry. Please send me a links with relevant information regards Khabazela Green IT Web http://www.greenitweb.co.za -- To un

Re: diff says memory exhausted need help with perl

2008-03-29 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > On Mar 28, 6:54 pm, [EMAIL PROTECTED] (Lawrence Statton) wrote: >> If you're using Gnu diff (i.e. the diff that comes with most Linuces) --speed-large-files might help you, without having to jump through a perl hoop. Problems: [snip] > 3) The heiristic approach is

Re: diff says memory exhausted need help with perl

2008-03-29 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > On Mar 28, 6:54 pm, [EMAIL PROTECTED] (Lawrence Statton) wrote: If you're using Gnu diff (i.e. the diff that comes with most Linuces) --speed-large-files might help you, without having to jump through a perl hoop. --L Problems: 1) it runs out of memory 8Gig of files

Re: diff says memory exhausted need help with perl

2008-03-29 Thread tc314
On Mar 28, 6:54 pm, [EMAIL PROTECTED] (Lawrence Statton) wrote: > If you're using Gnu diff (i.e. the diff that comes with most Linuces) > --speed-large-files might help you, without having to jump through a > perl hoop. > > --L Problems: 1) it runs out of memory 8Gig of files with 2GB RAM 2) it as

Re: diff says memory exhausted need help with perl

2008-03-28 Thread John W. Krahn
[EMAIL PROTECTED] wrote: I've got two similar large files with one word per line and they're sorted. Each file has a few words not in the other. I typically identify the unique words in the file using diff,grep,cut. When the files are too big (2Gig) diff dies with "memory exhausted". I want to s

Re: diff says memory exhausted need help with perl

2008-03-28 Thread Lawrence Statton
If you're using Gnu diff (i.e. the diff that comes with most Linuces) --speed-large-files might help you, without having to jump through a perl hoop. --L -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

diff says memory exhausted need help with perl

2008-03-28 Thread tc314
I've got two similar large files with one word per line and they're sorted. Each file has a few words not in the other. I typically identify the unique words in the file using diff,grep,cut. When the files are too big (2Gig) diff dies with "memory exhausted". I want to search for the unique words

Re: Need help with Perl Book

2005-10-04 Thread Chris Devers
On Tue, 4 Oct 2005, Tom Allison wrote: > Bobby Jafari wrote: > > Hi All, > > > > I am looking for a suitable Perl Book to buy. I use Perl mainly for > > running test scripts on Telecommunications based products. I use > > Net::SNMP and Net::Telnet extensively. > > > > I also need a book on a go

Re: Need help with Perl Book

2005-10-04 Thread Tom Allison
Bobby Jafari wrote: Hi All, I am looking for a suitable Perl Book to buy. I use Perl mainly for running test scripts on Telecommunications based products. I use Net::SNMP and Net::Telnet extensively. I also need a book on a good GUI Interface for Perl. Is TK a good option? What are other GUI

Need help with Perl Book

2005-10-03 Thread Bobby Jafari
Hi All, I am looking for a suitable Perl Book to buy. I use Perl mainly for running test scripts on Telecommunications based products. I use Net::SNMP and Net::Telnet extensively. I also need a book on a good GUI Interface for Perl. Is TK a good option? What are other GUI support available for P

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

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

2004-10-17 Thread Ravi Malghan
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 change. =

[Solved]Re: Could anyone please help with PERL file association.

2004-07-10 Thread Marco Perl
I am always grateful to you guys. this is how I finally solved it: to set path: start>control-panel>systems>env-variables>new name:path value: %path%;C:\Z_PERL\Perl\bin then Open a Win-explorer, tools > folder-options > File Type, create a new extention called pl and ptk, associate with path whi

Could anyone please help with PERL file association.

2004-07-09 Thread Marco Perl
Hi Team , I am always grateful for your help. when I double-click on myscript.PL rather than executing my module it opens it with Notes-editor. I did an ~Open-with on it and associted it with c:\Perl\bin\perl.584 this will run my module only one time with perl, and the module does not stay associ

Re: Could anyone please help with PERL file association.

2004-07-09 Thread Marco Perl
Hi, I associted it with c:\Perl\bin\perl.584 it runs my module one time with perl but the module does not stay associated even though I check marked always associte with this program. Marco. [EMAIL PROTECTED] wrote: Right mouse click on Start,select Explore, locate the file, Right mouse c

Re: Could anyone please help with PERL file association.

2004-07-09 Thread William . Ampeh
Right mouse click on Start,select Explore, locate the file, Right mouse click on the file, click on Open with, select other program, then locate the Perl interpreter (something like perl???.exe). You could select always use to lock the file association. __ William Ampeh (x3

Could anyone please help with PERL file association.

2004-07-09 Thread Marco Perl
Hi Team , I am always grateful to you for helping. I used PERL in UNIX and not familiar with Win-2000 environment. I installed ActiveState PERL on Windows-2k but it did not setup MSWin32 file association. so now when I double-click on myscript.PL rather than executing my module it opens it with No

Help with Perl-SDL

2004-03-19 Thread Joel
I seem to be unable to install it. I keep getting this message from build.pl: "Base class package "Module::Build" is empty. (Perhaps you need to 'use' the module which defines that package first.) at make/lib/SDL/Build.pm line 4 BEGIN failed--compilation aborted at make/lib/SDL/Build.pm line 4. Com

help with perl

2003-10-27 Thread Rufus Fleary
I need to convert times in a piece of text to dfifferent formats The formats are 24 hour clock as hh:mm 09:35 17:05 24 hour clock as hhmmhrs 0935hrs 1705hrs 12 hour clock hh.mm am or pm 9.35am 5.05pm The application is to have a web form with a large text area for the text to be processed an oth

Re: Wanted: Help with perl 5.6 syntax Arrays, Hashes and references

2003-06-04 Thread R. Joseph Newton
Richard Heintze wrote: > Why does "@$y[$i]" work here, and "foreach $i (keys > %$x)" works to fetch the keys from a reference to a > hash, but I use $$x{$i} to fetch hash reference > element values instead of %$x{$i}? > > This seems very inconsistent to me. > Maybe, but it is really not. What y

Re: Wanted: Help with perl 5.6 syntax Arrays, Hashes and references

2003-06-01 Thread James Edward Gray II
On Saturday, May 31, 2003, at 03:51 PM, Richard Heintze wrote: James, I hope this is my last question. I appreciate your (and everyone else's that has contributed) generousity. Not a problem. Hope I'm helping more than I'm confusing. Why does "@$y[$i]" work here, and "foreach $i (keys %$x)" wo

Re: Wanted: Help with perl 5.6 syntax Arrays, Hashes and references

2003-06-01 Thread Richard Heintze
James, I hope this is my last question. I appreciate your (and everyone else's that has contributed) generousity. I have a web site I inherited where a single page has 3000 lines of perl code. It does not use strict or warnings. The original authors only used global variables and never used any f

Re: Wanted: Help with perl 5.6 syntax Arrays, Hashes and references

2003-06-01 Thread James Edward Gray II
On Saturday, May 31, 2003, at 02:45 PM, Richard Heintze wrote: Can you explain this syntax then, that is used with foreach loops? foreach my $i (keys %{$x}) { ... } Why don't we use foreach my $i (keys $$x){... }? What is the name for this syntax: "(keys %{$x})"? Oops, sorry, I meant to get to

Re: Wanted: Help with perl 5.6 syntax Arrays, Hashes and references

2003-06-01 Thread Richard Heintze
Sorry James, you got a second copy. I meant to reply to the group. James, thank you, thank you! Can you explain this syntax then, that is used with foreach loops? foreach my $i (keys %{$x}) { ... } Why don't we use foreach my $i (keys $$x){... }? > > What is the name for this syntax: "(keys

Re: Wanted: Help with perl 5.6 syntax Arrays, Hashes and references

2003-06-01 Thread James Edward Gray II
On Saturday, May 31, 2003, at 01:47 PM, Richard Heintze wrote: I tried "use strict;" and that worked. Are you encouraging me to use "use warn;" too? That does not work. use warnings; It will alert you to potential problems in your code, while strict makes sure you obey the good programmer rules

Re: Wanted: Help with perl 5.6 syntax Arrays, Hashes and references

2003-06-01 Thread John W. Krahn
Richard Heintze wrote: > > I have some more questions! > > I tried "use strict;" and that worked. Are you > encouraging me to use "use warn;" too? That does not > work. use warnings; And/or: use diagnostics; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTE

Re: Wanted: Help with perl 5.6 syntax Arrays, Hashes and references

2003-06-01 Thread John W. Krahn
Richard Heintze wrote: > > Some help understanding this program would be greatly > appreciated! I'm really struggling with this perl > language! perldoc perldata perldoc perlreftut perldoc perlref perldoc perldsc perldoc perllol > my $x= {'d' => 'y', 'f' => 'g'}, > $y = ['a', 'b', 'c', 'd']

Re: Wanted: Help with perl 5.6 syntax Arrays, Hashes and references

2003-06-01 Thread Richard Heintze
Thank you very much James and David! Wow! What prompt responses! I have some more questions! I tried "use strict;" and that worked. Are you encouraging me to use "use warn;" too? That does not work. > > # $i receives the proper values > > foreach my $i (keys %{$x}) { > > # (4) Why does not thi

Re: Wanted: Help with perl 5.6 syntax Arrays, Hashes and references

2003-06-01 Thread James Edward Gray II
On Saturday, May 31, 2003, at 12:51 PM, Richard Heintze wrote: my $x= {'d' => 'y', 'f' => 'g'}, $y = ['a', 'b', 'c', 'd']; I am surprised this works. I would write this as: my($x, $y) = ( { d => 'y', f => 'g' }, [ qw(a b c d) ] ); The => operator automatically quotes barewords in front of

RE: Wanted: Help with perl 5.6 syntax Arrays, Hashes and references

2003-06-01 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Richard Heintze wrote: > Some help understanding this program would be greatly > appreciated! I'm really struggling with this perl > language! > Thanks, > siegfried > You should always use warnings and strict. In the first portion, you had a comma after the end of $x lin

Wanted: Help with perl 5.6 syntax Arrays, Hashes and references

2003-06-01 Thread Richard Heintze
Some help understanding this program would be greatly appreciated! I'm really struggling with this perl language! Thanks, siegfried my $x= {'d' => 'y', 'f' => 'g'}, $y = ['a', 'b', 'c', 'd']; # This works! Good! foreach my $i (@{$y}){ print "array i = $i\n" } # (1) Why does

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
tails but I bet that's where the problem lies. > -Original Message- > From: Mailing lists [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 14, 2003 5:27 PM > To: [EMAIL PROTECTED] > Subject: help with perl, openbsd and postgres > > > Dear sirs > i need t

RE: help with perl, openbsd and postgres

2003-02-14 Thread Mailing lists
;s where the problem lies. > -Original Message- > From: Mailing lists [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 14, 2003 5:27 PM > To: [EMAIL PROTECTED] > Subject: help with perl, openbsd and postgres > > > Dear sirs > i need to drive a postgres database u

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 -

help with perl, openbsd and postgres

2003-02-14 Thread Mailing lists
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't pass the "make" step

Re: Need Help With Perl! I'm Lost!

2002-11-12 Thread Jan Gruber
Hi, Dan ! DId you place the config.cgi in one of these directories ? > Can't locate config.cgi in @INC (@INC contains: > /usr/local/lib/perl5/5.6.0/i386-bsdos /usr/local/lib/perl5/5.6.0 > /usr/local/lib/perl5/site_perl/5.6.0/i386-bsdos > /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/s

Need Help With Perl! I'm Lost!

2002-11-11 Thread Palm Optins
I purchased a script to handle a mailing list. I have a problem getting it to open my setup.cgi file. I keep getting this error: Can't locate config.cgi in @INC (@INC contains: /usr/local/lib/perl5/5.6.0/i386-bsdos /usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/site_perl/5.6.0/i386-bsdos /usr/l

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
-get("1.0",'end'); } -Original Message- From: richard noel fell [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 1:15 PM To: [EMAIL PROTECTED] Subject: help with perl/Tk Below is a simple script which I am using as part of my attempt to learn how to program a

Re: help with perl/Tk

2002-03-07 Thread Tanton Gibbs
"richard noel fell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 07, 2002 1:14 PM Subject: help with perl/Tk > 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

help with perl/Tk

2002-03-07 Thread richard noel fell
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 try to compile the program. Has any

Re: Need help with Perl error Please

2002-02-21 Thread Michael Kelly
On 2/21/02 10:15 PM, Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> wrote: > On Feb 21, Michael Kelly said: > >> On 2/21/02 10:00 PM, Michael Eggleton <[EMAIL PROTECTED]> wrote: >> >>> If I use the '<' for Justify left. I get the error message: Missing >>> right curly or square braket. >> >> You need

Re: Need help with Perl error Please

2002-02-21 Thread Jeff 'japhy' Pinyan
On Feb 21, Michael Kelly said: >On 2/21/02 10:00 PM, Michael Eggleton <[EMAIL PROTECTED]> wrote: > >> If I use the '<' for Justify left. I get the error message: Missing >> right curly or square braket. > >You need to terminate formats with '.' (a single period), not '..' > >That should fix it,

Re: Need help with Perl error Please

2002-02-21 Thread Michael Eggleton
t;[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Date: Thu, 21 Feb 2002 22:09:34 -0800 Subject: Re: Need help with Perl error Please > On 2/21/02 10:00 PM, Michael Eggleton <[EMAIL PROTECTED]> > wrote: > > > Hi All, > > > > I have a problem with the Perl format c

Re: Need help with Perl error Please

2002-02-21 Thread Michael Kelly
On 2/21/02 10:00 PM, Michael Eggleton <[EMAIL PROTECTED]> wrote: > Hi All, > > I have a problem with the Perl format command. > > If I use the '<' for Justify left. I get the error message: Missing > right curly or square braket. You need to terminate formats with '.' (a single period), not '.

Need help with Perl error Please

2002-02-21 Thread Michael Eggleton
Hi All, I have a problem with the Perl format command. If I use the '<' for Justify left. I get the error message: Missing right curly or square braket. So this code below does not work: format STDOUT = ZIPPKG: @<<< $zippkg

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, &g

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
107 www.electronicink.com t 215.922.3800 x(233) f 215.922.3880 -Original Message- From: Nguyen, Andy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 2:17 PM To: '[EMAIL PROTECTED]' Subject: Help with Perl Hi List, I am new to perl and looking for a shortcut way

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

Help with Perl

2001-12-05 Thread Nguyen, Andy
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 something } I really don't want to repeat $letter for every letter (B-L

RE: Help with PERL

2001-11-15 Thread John Edwards
- From: Sherri [mailto:[EMAIL PROTECTED]] Sent: 14 November 2001 21:50 To: [EMAIL PROTECTED] Subject: Help with PERL Importance: High I am a student. I have an assign where my instructor asked me to do the following: (and I don't know where to begin, please advise, I would greatly apprecia

Help with PERL

2001-11-15 Thread Sherri
I am a student. I have an assign where my instructor asked me to do the following: (and I don't know where to begin, please advise, I would greatly appreciate it) "Write a program that will merge two hashes together onto a third hash called %h3. Return a reference to %h3 to the main program an

please help with perl form

2001-09-09 Thread Luinrandir Hernson
My question is, What command (in my perl prog?) do i use to goto the next page? Also, do i have the part of the perl prog correct? it doesn't make the file. And what command do i use to set the CHMOD on the net file (in perl)? This is in my HTML page code: Email address?

RE: Please help with perl library path problem!

2001-08-07 Thread Matt Crapo
Oops - forgot to share... -Original Message- From: Matt Crapo [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 07, 2001 4:19 PM To: 'Chidi' Subject: RE: Please help with perl library path problem! I may be off in left field here, but I've had similar error messages (

Re: Please help with perl library path problem!

2001-08-07 Thread Chidi
I am getting an error on my solaris 5.6 sparc box when I try to run a Perl program with the Sybperl CTLIB extension. Specifically, I get the following error message: Can't load '/tools/ver/perl-5.005_03/lib/site_perl/5.005/sun4-solaris/auto/Sybase/CTlib /CTlib.so' for module Sybase::CTlib: ld.

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