Shawn H Corey wrote:
> Erez Schatz wrote:
>> The official logo of the Perl Foundation, and AFAIK, the
>> one promoted
>> by Larry Wall is the onion, especially the one shown
>> here:
>> http://www.perlfoundation.org/perl_trademark
>>
>
> That look ore like a garlic bulb to me. :)
>
--
Either way,
> "n" == netfox writes:
n> Why it isn't a Pearl? That seems more close.
because the language is perl without the 'a'. it actually was originally
going to be caller 'pearl' (after another name change) but that was
already used for a language so larry dropped the 'a'. making a pearl the
log
Why it isn't a Pearl? That seems more close.
-Original Message-
From: Erez Schatz
To: M. E8. H.
Cc: beginners@perl.org
Sent: Mon, Oct 26, 2009 4:58 am
Subject: Re: A Revised Logo for Perl
2009/10/25 M. E8. H. :
This is an minor topic. I feel the Camel logo to represent Perl
John W. Krahn wrote:
> Why the for loop?
>
> my @list = $word =~ /(?=(.{$size}))/g;
>
>
>> # print Dumper \...@list; #for testing only
>> }
Because you sent it with a loop. It also seems faster.
#!/usr/bin/env perl
use strict;
use warnings;
use Data::Dumper;
# Make Data::Dumper pretty
Shawn H Corey wrote:
John W. Krahn wrote:
$ perl -le'
my $word = "thequickbrown";
my $subsets = 3;
print for $word =~ /(?=(.{$subsets}))/g;
Getting up there but substr is still the fastest.
#!/usr/bin/env perl
use strict;
use warnings;
use Data::Dumper;
# Make Data::Dumper pretty
$Data::Du
Erez Schatz wrote:
> The official logo of the Perl Foundation, and AFAIK, the one promoted
> by Larry Wall is the onion, especially the one shown here:
> http://www.perlfoundation.org/perl_trademark
>
That look ore like a garlic bulb to me. :)
--
Just my 0.0002 million dollars worth,
Sh
M. E8. H. wrote:
> This is an minor topic. I feel the Camel logo to
> represent Perl to be strange, illogical and slightly ugly.
> I presume I do not get the humor. However I prefer a
> swiss army knife -liked tool or a red tool box with tons
> of tools to be a better logo.Like C, Perl is a
2009/10/25 M. E8. H. :
> This is an minor topic. I feel the Camel logo to represent Perl to be
> strange, illogical and slightly ugly. I presume I do not get the humor.
> However I prefer a swiss army knife -liked tool or a red tool box with tons
> of tools to be a better logo. Like C, P
This is an minor topic. I feel the Camel logo to represent Perl to be strange,
illogical and slightly ugly. I presume I do not get the humor. However I
prefer a swiss army knife -liked tool or a red tool box with tons of tools to
be a better logo. Like C, Perl is a programming language t
John W. Krahn wrote:
> $ perl -le'
> my $word = "thequickbrown";
> my $subsets = 3;
> print for $word =~ /(?=(.{$subsets}))/g;
Getting up there but substr is still the fastest.
#!/usr/bin/env perl
use strict;
use warnings;
use Data::Dumper;
# Make Data::Dumper pretty
$Data::Dumper::Sortkeys =
Michael Alipio wrote:
Hi,
Hello,
How do I split a word into n subsets?
my $word = "thequickbrown"
If I want three subsets I should be able to create:
the
heq
equ
upto
own
$ perl -le'
my $word = "thequickbrown";
my $subsets = 3;
print for $word =~ /(?=(.{$subsets}))/g;
'
the
he
Dr.Ruud wrote:
> print substr( $word, $-[0], 3 )
> while $word =~ /.(?=..)/g;
>
Doesn't beat substr.
#!/usr/bin/env perl
use strict;
use warnings;
use Data::Dumper;
# Make Data::Dumper pretty
$Data::Dumper::Sortkeys = 1;
$Data::Dumper::Indent = 1;
# Set maximum depth for Data::Dumper
Michael Alipio wrote:
my $word = "thequickbrown"
If I want three subsets I should be able to create:
the
heq
equ
.
upto
.
own
print substr( $word, $-[0], 3 )
while $word =~ /.(?=..)/g;
--
Ruud
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands,
Shlomi Fish wrote:
> Why not use perldoc -f substr ( http://perldoc.perl.org/functions/substr.html
> ) in a loop? Alternatively one can use unpack but I'm not sure how well it
> would handle Unicode characters.
You're right, substr works best.
#!/usr/bin/env perl
use strict;
use warnings;
use
Majian wrote:
I found these :
perl -e'print 01.234 + 01.234', "\n"'
perl -e'print 01.234 + 011.234' "\n"'
perl -e'print 01.234.12 + 01.234', "\n"'
And the results were :
1235234
1235234
1235.12234
For other surprises, try also:
perl -wle 'print length(01.234.12)'
perl -wle 'print 01.234.12'
On Sunday 25 Oct 2009 14:39:32 Shawn H Corey wrote:
> Michael Alipio wrote:
> > Any idea how to do this? I'm thinking maybe I can just
> > split the whole string and push each character into array,
> > then loop through the array, getting 3 elements set in the
> > proces..
>
> Split the string int
Michael Alipio wrote:
> Any idea how to do this? I'm thinking maybe I can just
> split the whole string and push each character into array,
> then loop through the array, getting 3 elements set in the
> proces..
Split the string into an array, loop through it and use a slice to join
the elements.
2009/10/25 Majian :
> I found these :
> perl -e'print 01.234 + 01.234', "\n"'
print (01).(234+01).234, "\n";
this evaluates to '1'.'235'.'234'
> perl -e'print 01.234 + 011.234' "\n"'
I didn't get 1235234, I got 1243234.
print (01).(234+011).(234),"\n"
evaluates to
print '1'.(234+9).'234',"\n";
I found these :
perl -e'print 01.234 + 01.234', "\n"'
perl -e'print 01.234 + 011.234' "\n"'
perl -e'print 01.234.12 + 01.234', "\n"'
And the results were :
1235234
1235234
1235.12234
Can someone explain it ?
Thanks~~
On Sat, Oct 24, 2009 at 7:28 PM, Peter Scott wrote:
> On Wed, 21 Oct 200
2009/10/25 Michael Alipio :
> I'm trying to write a word list generator which can
> generate all possible combinations of n characters, within n
> set of characters.
Have you looked into the magical autoincrement operator?
http://perldoc.perl.org/perlop.html#Auto-increment-and-Auto-decrement
Hi,
How do I split a word into n subsets?
my $word = "thequickbrown"
If I want three subsets I should be able to create:
the
heq
equ
upto
own
Using split function with limit of 3 gives me:
t h equickbrown
Any idea how to do this? I'm thinking maybe I can just split the whole st
I was thinking about this recursive thing... thanks for the tip.. will try this
out.. I hope I can accomplish it.
--- On Sun, 10/25/09, Gabor Szabo wrote:
> From: Gabor Szabo
> Subject: Re: compact my wordlist generator
> To: "Michael Alipio"
> Cc: "begginers perl.org"
> Date: Sunday, Octobe
2009/10/25 Michael Alipio :
> Hi,
>
> I'm trying to write a word list generator which can
> generate all possible combinations of n characters, within n
> set of characters.
>
>
> So far, this is what I have come up. The only input is the
> lenght of the password the user wants.
>
> my @set =
Hi,
I'm trying to write a word list generator which can
generate all possible combinations of n characters, within n
set of characters.
So far, this is what I have come up. The only input is the
lenght of the password the user wants.
my @set = qw(a b c d e f g h i j k l m n o p q r s t
24 matches
Mail list logo