Re: Maybe-useful subroutine (BETTER!)

2002-07-02 Thread Bart Lateur
On Tue, 2 Jul 2002 05:17:57 -0700, Abigail wrote: >However, the week before YAPC::NA, we bought a >house and we get the keys to the house in September. Hence, I'll be >painting, cleaning and moving that month. :( Man that must be a really *huge* house! Unless you actually ment "September" in t

Re: Maybe-useful subroutine (BETTER!)

2002-07-02 Thread sara starre
>From: Abigail <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED], [EMAIL PROTECTED] >Subject: Re: Maybe-useful subroutine (BETTER!) >Date: Tue, 2 Jul 2002 05:06:04 -0700 > > .. .. .. > >There isn't much going on here. '$#' followed by a name of an a

Re: Maybe-useful subroutine (BETTER!)

2002-07-02 Thread Steffen Mueller
"Abigail" <[EMAIL PROTECTED]> schrieb... > Well, I was planning to come to Munich. I actually intended to submit > a few papers as well. However, the week before YAPC::NA, we bought a > house and we get the keys to the house in September. Hence, I'll be > painting, cleaning and moving that month.

Re: Maybe-useful subroutine (BETTER!)

2002-07-02 Thread Bernard El-Hagin
On Tue, 2 Jul 2002, Abigail wrote: > As for beer, well, I don't drink alcohol anyway. Unless you do drugs there goes the only thing I could think of to explain some of your JAPHs. ;-) Cheers, Bernard -- echo 42|perl -pe '$#="Just another Perl hacker,"'

Re: Maybe-useful subroutine (BETTER!)

2002-07-02 Thread Abigail
On Mon, Jul 01, 2002 at 09:14:36PM +0200, Steffen Mueller wrote: > "Abigail" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > On Mon, Jul 01, 2002 at 03:46:15PM +, sara starre wrote: > > > > > > Well done, we're having fun now~!!! Abigail you need t

Re: Maybe-useful subroutine (BETTER!)

2002-07-02 Thread Abigail
On Mon, Jul 01, 2002 at 05:43:52PM +, sara starre wrote: > > > > 1) I don't think my code was obfuscated. It certainly wasn't > > intended to. > > 2) I will never ever be at a Perl conference where they charge > > over $1000 entrance fee and hundreds more for tutorials. > >

Re: Maybe-useful subroutine (BETTER!)

2002-07-02 Thread Steffen Mueller
"Keith C. Ivey" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 3D20DD6E.24532.1A2D7FCB@localhost">news:3D20DD6E.24532.1A2D7FCB@localhost... > Steffen Mueller <[EMAIL PROTECTED]> wrote: > > > I hope I'm not drifting into the unfun territory, but how come > > YAPC::Europe can afford to take 89EUR wherea

Re: Maybe-useful subroutine (BETTER!)

2002-07-01 Thread Yitzchak Scott-Thoennes
In article <[EMAIL PROTECTED]>, "sara starre" <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] (Yitzchak Scott-Thoennes) wrote: > >>I didn't think that was obfuscated. >>How about this: > >sub rotate {[$#{$_[!$||$|]}*@{$_[!!$_^!$_]}?@{$_[!$..!!$.]}[$_[@--@+]%@ >{$_[$==~/(?=)//!$`]}..$#{$_[$??!!$?:!$?

Re: Maybe-useful subroutine (BETTER!)

2002-07-01 Thread sara starre
[EMAIL PROTECTED] (Yitzchak Scott-Thoennes) wrote: >I didn't think that was obfuscated. >How about this: sub rotate {[$#{$_[!$||$|]}*@{$_[!!$_^!$_]}?@{$_[!$..!!$.]}[$_[@--@+]%@ {$_[$==~/(?=)//!$`]}..$#{$_[$??!!$?:!$?]},($)?!$):!!$))..$_[$--$-]%@{$_ [$]/$]]}-(!!$++!$+)]:@{$_[!!$^^^!$^^]}]} **

Re: Maybe-useful subroutine (BETTER!)

2002-07-01 Thread Keith C. Ivey
Steffen Mueller <[EMAIL PROTECTED]> wrote: > I hope I'm not drifting into the unfun territory, but how come > YAPC::Europe can afford to take 89EUR whereas American > conferences generally charge ten times that amount? Eh? It's not Europe versus America. It's YAPC versus commercial conference

Re: Maybe-useful subroutine (BETTER!)

2002-07-01 Thread Yitzchak Scott-Thoennes
Yet Another *::Util Plug: Scalar::Util::reftype finds the underlying type even for objects. (Unfortunately for non-refs it returns undef instead of '' as the builtin ref does.) In article <[EMAIL PROTECTED]>, Abigail <[EMAIL PROTECTED]> wrote: >#!/usr/bin/perl -w > >use strict; >use warnings 'al

Re: Maybe-useful subroutine (BETTER!)

2002-07-01 Thread Steffen Mueller
"Abigail" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Mon, Jul 01, 2002 at 03:46:15PM +, sara starre wrote: > > > > Well done, we're having fun now~!!! Abigail you need to do an obscufication > > talk at Open Source! > > > Just a few remarks: >

Re: Maybe-useful subroutine (BETTER!)

2002-07-01 Thread sara starre
> > 1) I don't think my code was obfuscated. It certainly wasn't > intended to. > 2) I will never ever be at a Perl conference where they charge > over $1000 entrance fee and hundreds more for tutorials. > I'd be too embarrassed to give a talk. > 3) I gave obfuscation t

Re: Maybe-useful subroutine (BETTER!)

2002-07-01 Thread Abigail
On Mon, Jul 01, 2002 at 03:46:15PM +, sara starre wrote: > > Well done, we're having fun now~!!! Abigail you need to do an obscufication > talk at Open Source! Just a few remarks: 1) I don't think my code was obfuscated. It certainly wasn't intended to. 2) I will never ever

Re: Maybe-useful subroutine (BETTER!)

2002-07-01 Thread sara starre
>From: Abigail <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED], [EMAIL PROTECTED] >Subject: Re: Maybe-useful subroutine (BETTER!) >Date: Mon, 1 Jul 2002 08:37:42 -0700 > >Unfortunally, I left out a '-1'. Here's the right version: > >#!/usr/

Re: Maybe-useful subroutine (BETTER!)

2002-07-01 Thread Abigail
Unfortunally, I left out a '-1'. Here's the right version: #!/usr/bin/perl -w use strict; use warnings 'all'; sub rotate { return () unless $_ [1]; die "Not an array ref" unless "ARRAY" eq ref $_ [1]; return [] unless @{$_ [1]}; my $l = $_ [0] % @{$_ [1]}; [@{$_ [1]} [$l