On Wed, 22 Aug 2001 at 11:32:18 +1000, [EMAIL PROTECTED] wrote:
From [EMAIL PROTECTED] (Randal Schwartz) 1 Feb 90 22:28:58 GMT
@a=split(/(\d)/,4Hacker,2another3Perl1Just);shift(@a);%a=@a;
print @a{1..4};
66:
%a=(,split /(\d)/,4Hacker,2another3Perl1Just);print@a{1..4};
I *think* this will
On Fri, 07 Sep 2001 at 09:30:51 -0500, Craig S. Cottingham wrote:
On Friday, September 7, 2001, at 03:48 , Simon Cozens wrote:
If I could assume I was using zsh:
On Friday, September 7, 2001, at 04:39 , Ian Phillipps wrote:
Well, this requires a zero-length perl program.
Zsh supports
spaces near the right margin.)
No, I got it too.
I think fwp mailing list is wrapping long lines.
Ian Phillipps was able to prevent that happening in his original post.
I didn't send my portrait to FWP, but I don't think that FWP wraps lines. If this
isn't wrapped, it doesn't. (125 characters
On Thu, 18 Oct 2001 at 20:43:40 -0400, Uri Guttman wrote:
IP == Ian Phillipps [EMAIL PROTECTED] writes:
IP I feel sure this is a FAQ...
trust your feelings. i didn't answer because it IS an FAQ. FAQ's aren't
fun. :)
Oh, I don't know. My solution is a few strokes better than the FAQ's
On Thu, 25 Oct 2001 at 12:56:21 +0100, Robin Houston wrote:
On Thu, Oct 25, 2001 at 10:42:44AM +0100, Ian Phillipps wrote:
I don't normally like to butt into a private conversation,
:-) I hope this doesn't seem like a private conversation -- otherwise
it shouldn't be on a public mailing list
[EMAIL PROTECTED] wrote:
Here is [...] a new mystery man.
Can you identify him?
Philip Newton wrote:
Dr. Damian?
Yes, I traced the photo from his web site.
Andrew.
On Thu, 15 Nov 2001 at 10:20:58 -0500, Ronald J Kimball wrote:
That will not work in this case, because it would print out a newline for
every line of input, including the ones that are being skipped.
I'd construe that as a feature: the line numbers stand more chance of
remaining in sync -
On Sat, 17 Nov 2001 at 20:44:28 -0500, Michael G Schwern wrote:
sh2perl goes back even further than that, though not as a fully
functioning program. The mythological sh2perl program was one that
would email your shell program to either comp.lang.perl (back when
there was *only*
On Tue, 20 Nov 2001 at 12:57:11 +, mallum wrote:
on Tue, Nov 20, 2001 at 01:53:40PM +0200, Vladi Belperchinov-Shabanski wrote:
it was really interesting for me how performance changed
between perl versions and other languages (interpreters/
scripts/etc.) but C points just
On Mon, 03 Dec 2001 at 14:23:21 +, Robin Houston wrote:
unless the file contains \0 characters...
To cope with that, you have to use
perl -aln0777F
Santa has kindly said that there are no \0 characters.
Ian
On Tue, 04 Dec 2001 at 22:33:45 +0100, Philippe 'BooK' Bruhat wrote:
I am very curious to see what else than the obvious can be done for
rev.pl. And I wonder if shorter than the obvious is possible (I guess so).
Ah, you mean the one that's in the perl documentation :-)
I wrote that as a
On Wed, 05 Dec 2001 at 10:55:25 +, Piers Cawley wrote:
Eugene van der Pijll [EMAIL PROTECTED] writes:
[EMAIL PROTECTED] schreef op 05 december 2001:
Please let me know when you think we should end the game.
Well, 6 December is St Nicolas' day, so that sounds like a good time to
stop...
On Tue, 22 Jan 2002 at 10:21:13 +0100, Philippe 'BooK' Bruhat wrote:
En réponse à Simon Cozens [EMAIL PROTECTED]:
So, who's gonna go to the obvious next level and give us an ofuscated
FORTH implementation, plus a decent JAPH in FORTH?
Well... That was the reason why I first tried to
On Tue, 29 Jan 2002 at 17:31:57 +0100, Eugene van der Pijll wrote:
I'm sure it didn't. I sent in my best solution on friday (I think), and
have been in bed with a severe headache only since yesterday afternoon.
but still posting to FWP. Now *there's* dedication :-)
I had it two weeks
On Fri, 01 Feb 2002 at 10:58:10 -0500, Ala Qumsieh wrote:
Rick Klement writes:
s/\b\d\b/0$/g
(it's the effects of playing a lot of golf lately... :)
Golf?!
s|\b\d/|0$|g
Perhaps some of the baroque constructions seen in this thread are
actually a game of perl flog, designed to
On Fri, 08 Mar 2002 at 18:27:00 +, Stephen Turner wrote:
I've looked quickly at all the entries up to 55 strokes, and identified the
following methods for difficult bits of the problem. Apologies for errors
and omissions!
Methods for pulling off all pairs of characters:
/(?=(..)./
On Mon, 18 Mar 2002 at 10:58:12 +, Stephen Turner wrote:
On Mon, 18 Mar 2002 [EMAIL PROTECTED] wrote:
12. Stephen Turner $ 290,000.00
Great! The only mistake I can find is that I don't appear to have received
my cheque yet.
It's in the post.
Ian
On Mon, 25 Mar 2002 at 19:40:59 +, xfgh hfgh wrote:
Many of the questions can be great FWP/Golf:)
http://icpc.baylor.edu/icpc/Finals/problems.pdf
Congrats to Chinese, Americans and Russians!
World finals results:
3 University of Waterloo 6 | 974
I think you forgot the
On Mon, 25 Mar 2002 at 12:23:43 -0800, resi dencia wrote:
Hmm.. very interesting.. each university has one team, each time has 3 people, total
5 hours of programming. Languages C, C++, Java and Pascal are allowed to use.
So, here is chance to prove either you are smarter than top college
On Thu, 30 May 2002 at 20:11:14 +0200, Magnus Bodin wrote:
What is the idiom (golf) to pack 7-bit-ASCII to 8-bit-code?
I'm sure others will do better, but try this:
sub s8{pack'B*',join'',grep$i++%8,(unpack'B*',pop)=~/./g}
Hmm... what was that golfing trick to avoid join? I forget.
But this
On Tue, 19 Nov 2002 at 11:30:17 +0200, Vladi Belperchinov-Shabanski wrote:
hi!
I hope I understand the problem correctly, i.e. `how to escape'?
In this case I always prefer:
our %ESCMAP = ();
for ( 0 .. 255 ) { $ESCMAP{ chr( $_ ) } = sprintf(%%%02X, $_); }
That's not enough fun:
of a dog
eugene is devastated
But, most relevantly,
eugene is right
Ian
--
phillipps is adequate but i wouldn't rave
On Wed, 13 Aug 2003 at 14:46:22 +0100, Paul Makepeace wrote:
This isn't really perl, but it might be mildly fun for a few seconds:
$len += $page_size - $len % $page_size if $len % $page_size;
Any way of doing this in a single arithmetic expression, without the if?
Assuming integers:
$len =
On Wed, 21 Jan 2004 at 16:48:47 -0500, Andrew Pimlott wrote:
But such code
can sometimes be improved even more by defining a specific constant
for each use.
foo($bar, $baz, !VERBOSE, STOP_ON_ERROR);
And the real Fun with Perl is that this code will work perfectly well
without your
On Fri, 06 Feb 2004 at 09:45:43 -0500, [EMAIL PROTECTED] wrote:
What does the construct }{ mean? As in
$ perl -pe ' } { $_=foo\n' /dev/null
foo
I figure it has to do with how the -p switch affects the script that
is passed to the interpreter. Is this documented anywhere?
Yes, in
On Sat, 25 Sep 2004 at 19:09:31 -0700, Randal L. Schwartz wrote:
Keith == Keith C Ivey [EMAIL PROTECTED] writes:
Well, it also presumes that ! returns literally 0 and 1. I've
never seen a promise of that in any docs.
I think Perl6 should return 42 for true, just to keep people
from making
There's a craze for this number puzzle. I thought I'd try to hack
together a solver - I'm not the first! - and the following is my
offering (in perl, of course):
http://homepage.ntlworld.com/phillipps/sodsolve
It's not very pretty, but it solved a puzzle rated by the Times (of
London) as
On Wed, 27 Jul 2005 at 10:15:25 -0400, Quantum Mechanic wrote:
1) Not strict and warnings clean.
2) perl -c on
if( $puzmap[$bestpos] 1 == 0 )
gives:
Possible precedence problem on bitwise operator at
sudoku_ip.pl line ...
Hmm... it's warning-clean on my 5.8.4 - what version are
28 matches
Mail list logo