in reply to
Code that feels good
Having just convinced a co-worker that:
print join('^',split(/\s+/,$_)),"\n";
was much nicer than
my ($field1,$field2,$field3) = split(/\s+/,$_);
print "$field1^$field2^$field3\n";
I can say that code can feel good. ----
Comment on
Re: Code that feels good
Select
or
Download
Code
Replies are listed 'Best First'.
(MeowChow) Re2: Code that feels good
by
MeowChow
(Vicar)
on Aug 25, 2001 at 06:48 UTC
print join('^', /\S+/g), $/
... feels even better :-)
MeowChow
s aamecha.s a..a\u$&owag.print
[reply]
[d/l]
In Section
Meditations