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
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
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
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
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
[ 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
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)
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
>
>
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
[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
[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
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
[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
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/
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
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
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
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
> 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
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.
=
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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']
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
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
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
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
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
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
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
;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
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 -
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
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
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
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
> 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
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
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
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
-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
"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
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
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
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,
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
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 '.
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
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
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
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
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
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
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
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
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:
>
--- "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
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
-
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
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
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?
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
(
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.
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
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
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
78 matches
Mail list logo