Re: Why shouldn't sleep(0.5) DWIM?

2001-01-31 Thread Casey R. Tweten
nsidered for the Standard Distro, too. -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=> 'http://home.kiski.net/~crt'};print "\n",'.'x(length($sig->{site})+6),"\n"; print map{$_.': '.$sig->{$_}."\n"}sort{$sig->{$a}cmp$sig->{$b}}keys%{$sig}; my $VERSION = '0.01'; #'patched' by Jerrad Pierce

Re: RFC195: Do not remove 'chop' PLEASE!

2001-01-28 Thread Casey R. Tweten
g: 32 wallclock secs (31.15 usr + 0.08 sys = 31.23 CPU) @ 320170.76/s (n=1000) substr: 34 wallclock secs (32.87 usr + 0.13 sys = 33.00 CPU) @ 303030.30/s (n=1000) Doesn't seem like that much gain from chop() to substr(), but it's still a gain. 20k/s more... -- print

Re: Perl Apprenticeship Program

2000-12-05 Thread Casey R. Tweten
essage was intended as private, sorry for going public. I wanted : to make this clarification. No, it was public and you made a good clarification. -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=> 'http://home.kiski.net/~

Re: Perl Apprenticeship Program

2000-12-05 Thread Casey R. Tweten
ore. But that's just mho. -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=> 'http://home.kiski.net/~crt'};print "\n",'.'x(length($sig->{site})+6),"\n"; print map{$_.': '.$sig->{$_}."\n"}sort{$sig->{$a}cmp$sig->{$b}}keys%{$sig}; my $VERSION = '0.01'; #'patched' by Jerrad Pierce

Re: Proposal for groups

2000-12-03 Thread Casey R. Tweten
nough, no doubt. -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=> 'http://home.kiski.net/~crt'};print "\n",'.'x(length($sig->{site})+6),"\n"; print map{$_.': '.$sig->{$_}."\n"}sort{$sig->{$a}cmp$sig->{$b}}keys%{$sig}; my $VERSION = '0.01'; #'patched' by Jerrad Pierce

Re: Proposal for groups

2000-12-03 Thread Casey R. Tweten
to 10 ): * Working group chairs * Larry * Contributors and Authors of the Perl 5 core * People in the AUTHORS file of Perl 5 * Just moderate posting to the list I am not standing behind any of the above suggestions, just throwing them out there. -- print(join(' ', qw(Casey R. Twet

Re: Perl apprenticing (was Re: Backtracking through the source)

2000-11-30 Thread Casey R. Tweten
than : specific 'you' here) A good working knowledge of, say, the properties of : complex numbers is as important as knowledge of the guts when building the : complex number class. I deffinitley agree. -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PRO

Re: Uninstalling perl

2000-11-01 Thread Casey R. Tweten
? No, and good luck getting getting your box to work after installing 5.004 at /usr ( not /usr/local ). : 3. Anyone knows which was the previous (original) version, and : where can I found it? Look at the CPAN for Perl 5.004 -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>

Re: is this list still operational?

2000-10-30 Thread Casey R. Tweten
ation should be avoided on this list. RFC stuff _is_ over though and for that, you're late. -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=> 'http://home.kiski.net/~crt'};print "\n",'.'x(length($sig->{site

RE: new to perl

2000-10-24 Thread Casey R. Tweten
ldoc strict :perldoc -f my : : do find out about the "use strict" part. : : : : : Please try to find *appropriate* places to ask : your questions in the future. : : : -- : Tad McClellan SGML consulting : [EMAIL PROTECTED] Per

Re: RFC 263 (v1) Add null() keyword and fundamental data type

2000-09-20 Thread Casey R. Tweten
rue."; } I'm only half joking because I've been thinking about writing this for a while. However, I would probably never use it, personally, I can see times when others have wanted something close. =end -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'

Re: RFC 260 (v1) More modules

2000-09-20 Thread Casey R. Tweten
purely application servers. I don't want a minimum stripped down : perl installation that will get my job done. rm them. -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=> 'http://home.kiski.net/~crt'};print "\n&q

Re: pack/unpack is damn unperlish. Explain them as Perl.

2000-09-18 Thread Casey R. Tweten
ck' it into an array and print in in a pretty manner. printf( "%4d/%02d/%02d %02d:%02d%02d\n", unpack( 'A4A2A2A2A2A2', '2918123847' ) ); If printf is perlish, so is unpack, IMHO ;-) -- print(join(' ', qw(Casey R. Tweten

Re: RFC 212 (v1) Make length(@array) work

2000-09-13 Thread Casey R. Tweten
Today around 12:19pm, Nathan Torkington hammered out this masterpiece: : Casey R. Tweten writes: : > Ok, consider allowing: : > : > $a = length @b; : > : > to DWIM, however, when running with warnings, warn the user that C is : > what they really want. : > : > Jus

Re: RFC 212 (v1) Make length(@array) work

2000-09-13 Thread Casey R. Tweten
Today around 12:01pm, Nathan Torkington hammered out this masterpiece: : Casey R. Tweten writes: : > Leave length() the way it is now and, if one so desires, they may : > override it on there own to use length for getting: : : Not that helpful a suggestion for beginners. They don't

Re: RFC 212 (v1) Make length(@array) work

2000-09-13 Thread Casey R. Tweten
I do 'blah blah' with JavaScript? Hacker: You can't, it's a server side operation, use Perl. Kidie: How do I get the length of my array? I used length( @some_array ) and it didn't work! =end Please understand, allowing this to happen may encorage stupidity, which I am against

Re: RFC 212 (v1) Make length(@array) work

2000-09-13 Thread Casey R. Tweten
print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=> 'http://home.kiski.net/~crt'};print "\n",'.'x(length($sig->{site})+6),"\n"; print map{$_.': '.$sig->{$_}."\n"}sort{$sig->{$a}cmp$sig->{$b}}keys%{$sig}; my $VERSION = '0.01'; #'patched' by Jerrad Pierce

Re: RFC 42 - Request For New Pragma: Shell

2000-09-13 Thread Casey R. Tweten
tansparent shell ops in Perl, may ( or may not ) be a good application for this suggested pragma. I tend to fall toward the 'may not' category. -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=> 'http://home.kiski.net/~crt

Re: RFC 195 (v1) Retire chop().

2000-09-08 Thread Casey R. Tweten
ut fast if no one minds. -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=> 'http://home.kiski.net/~crt'};print "\n",'.'x(length($sig->{site})+6),"\n"; print map{$_.': '.$sig->{$_}."\n"}sort{$sig->{$a}cmp$sig->{$b}}keys%{$sig}; my $VERSION = '0.01'; #'patched' by Jerrad Pierce

Re: RFC 33 (v2) Eliminate bareword filehandles.

2000-09-06 Thread Casey R. Tweten
rfcnumber . '.pod' ); my $matched = $rfcpage =~ s/$string//isgo; print qq(RFC number $rfcnumber matches $matched time(s):\t$rfcroot$rfcnumber.pod\n) if $matched; } __END__ -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=> &#

Re: RFC 135 (v2) Require explicit m on matches, even with ?? and //as delimiters.

2000-08-25 Thread Casey R. Tweten
NG, PATTERN) : 3 match(PATTERN, FLAGS) : 4 match(PATTERN) : : because you can't really tell 2 from 3. If qr() were required for PATTERN, would this become less of an issue? Or no issue? -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]

Re: RFC 111 (v1) Whitespace and Here Docs

2000-08-24 Thread Casey R. Tweten
Today around 4:30pm, Tom Christiansen hammered out this masterpiece: : print <'[EMAIL PROTECTED]',site=> 'http://home.kiski.net/~crt'};print "\n",'.'x(length($sig->{site})+6),"\n"; print map{$_.': '.$sig->{$_}."\n"}sort{$sig->{$a}cmp$sig->{$b}}keys%{$sig}; my $VERSION = '0.01'; #'patche

115 (v1): Default methods for objects

2000-08-24 Thread Casey R. Tweten
x. Other issues? Maybe all 3 of these are unnecessary - but at least 2 would be darn useful. =head1 REFERENCES RFC 117: Perl syntax support for ranges L (http://pdl.sourceforge.net/PDLdocs) http://pdl.perl.org Numerical Python: http://starship.python.net/~da/numtut/ -- print(join(&#

142 (v1): Enhanced Pack/Unpack

2000-08-24 Thread Casey R. Tweten
=head1 REFERENCES Class::Class useful for automatic creation of get/set methods for variables on the basis of their names. http://search.cpan.org/doc/BINKLEY/Class-Class-0.18/lib/Class/Class.pm http://search.cpan.org/search?dist=Class-Class File::Binary possibly useful for read/write of binar

117 (v1): Perl syntax support for ranges

2000-08-24 Thread Casey R. Tweten
enerating a list or list iterator -- an implementation aspect we refer to as I. =head1 REFERENCES L (http://pdl.sourceforge.net/PDLdocs) http://pdl.perl.org RFC 24: Semi-finite (lazy) lists RFC 81: Lazily evaluated list generation functions -- print(join(' ', qw(Casey R. Tweten)

116 (v1): Efficient numerics with perl

2000-08-24 Thread Casey R. Tweten
signer, you have to stuff your brain with what you *could* do before you can reasonably choose what you *will* do. At the moment, I'm not only trying to follow along here; I'm also reading all the books on computer languaes I can get my hands on--not just to look for ideas to

115 (v1): Default methods for objects

2000-08-24 Thread Casey R. Tweten
x. Other issues? Maybe all 3 of these are unnecessary - but at least 2 would be darn useful. =head1 REFERENCES RFC 117: Perl syntax support for ranges L (http://pdl.sourceforge.net/PDLdocs) http://pdl.perl.org Numerical Python: http://starship.python.net/~da/numtut/ -- print(join(&#

109 (v1): Less line noise - let's get rid of @%

2000-08-24 Thread Casey R. Tweten
d be able to print an array or hash depending on type. Similarly accesses such as C<$x[42]> or C<$x{Fred}> should function via overloaded C<[]> and C<{}> operators. $y = $x + 1 Ought to be able to execute appropriate code whether $x is a scalar, a Perl array or a PDL a

82 (v2): Apply operators component-wise in a list context

2000-08-24 Thread Casey R. Tweten
erl.org RFC 76: reduce RFC 23: Higher-order functions RFC 81: Lazily evaluated list generation functions -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=> 'http://home.kiski.net/~crt'};print "\n",'.'x(length($sig->{site})+6),"\n"; print map{$_.': '.$sig->{$_}."\n"}sort{$sig->{$a}cmp$sig->{$b}}keys%{$sig}; my $VERSION = '0.01'; #'patched' by Jerrad Pierce

38 (v2): Standardise Handling Of Abnormal Numbers Like InfinitiesAnd NaNs

2000-08-24 Thread Casey R. Tweten
Lisp. =head1 REFERENCES Math::Complex PDL::Math [suggested by Tim Jenness] p6rfc for bigints [to be written] -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=> 'http://home.kiski.net/~crt'};print "\

RFC's mentioning PDL

2000-08-24 Thread Casey R. Tweten
http://dev.perl.org/rfc/142.pod I'll copy and paste these into my editor and send them along. -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=> 'http://home.kiski.net/~crt'};print "\n",'.'x(length($sig->{sit

122 (v1): types and structures

2000-08-24 Thread Casey R. Tweten
ears to be taking over a lot of C's duties. =head1 REFERENCES http://www.howstuffworks.com/c5.htm for C structures RFC 61 (v2): Interfaces for linking C objects into perlsubs RFC 75 (v1): first class interface definitions -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>

Re: Test

2000-08-24 Thread Casey R. Tweten
Today around 8:13am, Larry Wall hammered out this masterpiece: : Karl Glazebrook writes: : : Who is here anyway? : : Don't ask me. I only work here. Who is the chair of this group? We need an RFC or two to work on. -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>

Re: Test

2000-08-24 Thread Casey R. Tweten
with a fait accompli. "These are the recommendations : >of perl6-data". : > : >Who is here anyway? : : I'm here... I thought the formation of perl6-language-data was to discuss : the PDL RFCs anyway... Let's get crackin Karl! -- print(join(' ', qw(Casey R

Re: Test

2000-08-23 Thread Casey R. Tweten
d here. -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=> 'http://home.kiski.net/~crt'};print "\n",'.'x(length($sig->{site})+6),"\n"; print map{$_.': '.$sig->{$_}."\n"}sort{$sig->{$a}cmp$sig->{$b}}keys%{$sig}; my $VERSION = '0.01'; #'patched' by Jerrad Pierce

Re: functions that deal with hash should be more libera

2000-08-22 Thread Casey R. Tweten
Today around 4:07pm, John Porter hammered out this masterpiece: : Casey R. Tweten wrote: : > : > Removing intermediate data structures is easy in Perl, but not this case, : : C, etc. must have data structures to work on. There's no "getting rid" : of them. Perl can crea

Re: functions that deal with hash should be more libera

2000-08-22 Thread Casey R. Tweten
other people like me to understand this problem/bug/feature/not too noticed 'thing'. -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=> 'http://home.kiski.net/~crt'};print "\n",'.'x(length($sig->{si

Re: functions that deal with hash should be more libera

2000-08-22 Thread Casey R. Tweten
ou must use this syntax to force that to work: @array = keys %{{@array}}; '' Or something like that. This suggestion was brought up as a means to make these functions more user friendly. If it's impossible, then I'll be glad to forget about it. [Insert many replies that agree

Re: functions that deal with hash should be more libera

2000-08-22 Thread Casey R. Tweten
#x27;s not documented. Perhaps, at least for the current version of Perl, this should be documented in perlfunc under keys(), values() and each(). Also in perlfaq4, although I bet this is not a frequent question. -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL

Re: functions that deal with hash should be more libera

2000-08-22 Thread Casey R. Tweten
ened to making easy things easy, out of the box? : And if I want to be a masochist and have my code scrutinized like hell, : using strict, -wT ? : : use strict 'hash'; : no strict 'hash'; -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECT

Re: functions that deal with hash should be more liberal

2000-08-22 Thread Casey R. Tweten
Today around 10:11am, John Porter hammered out this masterpiece: : Casey R. Tweten wrote: : > : > sub func { : > return qw/KeyOne Value1 KeyTwo Value2/; : > } : > : > print "$_\n" foreach keys &func(); : : Please. There are ways -- well, just one

Re: functions that deal with hash should be more liberal

2000-08-21 Thread Casey R. Tweten
to be, then no. Why on earth would anyone suggest such a thing? How obsurd! : I don't see that flying. No, in that case, I don't either. -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=> 'http://home.kiski.net/~crt'

Re: functions that deal with hash should be more liberal

2000-08-21 Thread Casey R. Tweten
k something like this: sub keys { my %hash = @_; return keys %hash; } What is so hard about that? Besides, it's intuitive. If I were to write my own keys function, it would behave like above no matter what. I would expect a list, and return a list. -- print(join(' ', qw(Casey R.

Re: functions that deal with hash should be more liberal

2000-08-21 Thread Casey R. Tweten
d. The above should yeild something like: KeyOne KeyTwo Rather than that error. -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=> 'http://home.kiski.net/~crt'};print "\n",'.'x(length($sig->{site})+6),&

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-18 Thread Casey R. Tweten
SCALAR $hashref->{scl}; : print "\n"; : print join(',', ARRAY $hashref->{ary}), "\n"; : -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=> 'http://home.kiski.net/~crt'};print "\n",&

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-18 Thread Casey R. Tweten
Today around 2:04pm, Casey R. Tweten hammered out this masterpiece: : Today around 10:45am, Steve Fink hammered out this masterpiece: : : : Ted Ashton wrote: : : > : : > > all : : > > dereferencing c

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-18 Thread Casey R. Tweten
agma ( attempted because as far as I know, neither of us has touched it in a long while ) that degreases line noise in terms of punctuations, sorta. It's more verbose anyhow, where: @{ $hashref->{key} }; becomes: ARRAY{ $hashref->{key} }; And the same holds true for SCALAR, HASH, CODE, GL

Re: RFC 114 (v1) Perl resource configuration

2000-08-16 Thread Casey R. Tweten
Today around 7:17pm, Casey R. Tweten hammered out this masterpiece: : Today around 2:34pm, Nathan Wiger hammered out this masterpiece: : : : > Think on this: : : > : : > use perlrc qw/Resource1 Resource5/; # Import only named 'Resources' : : > :

Re: RFC 114 (v1) Perl resource configuration

2000-08-16 Thread Casey R. Tweten
think most of you get the idea. This way, you could still say in your module: use perlrc qw/:all/; because there would be a naming convention involved similar to: Module RC File -- --- CGI.pm CGI.rc Shell.pmShell.rc File/Find.pmFile/Find.rc And so o

Re: RFC 114 (v1) Perl resource configuration

2000-08-16 Thread Casey R. Tweten
more managable than a .perlrc that get's applied globaly without asking for it. * No, this doesn't exist right now. I know. -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=> 'http://home.kiski.net/~crt'};print &qu

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-16 Thread Casey R. Tweten
(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=> 'http://home.kiski.net/~crt'};print "\n",'.'x(length($sig->{site})+6),"\n"; print map{$_.': '.$sig->{$_}."\n"}sort{$sig->{$a}cmp$sig->{$b}}keys%{$sig}; my $VERSION = '0.01'; #'patched' by Jerrad Pierce