Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Wanted: one-liners
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Joseph N. Hall  
View profile  
 More options Nov 9 1996, 3:00 am
Newsgroups: comp.lang.perl.misc
From: "Joseph N. Hall" <jos...@5sigma.com>
Date: 1996/11/09
Subject: Wanted: one-liners

I'm collecting Perl one-liners for inclusion in a project I'm
working on.

If you have written, or observed, an extremely cool line of Perl,
I'd appreciate you sending me:

  1) the line of Perl
  2) who wrote it
  3) where it first appeared, if known

By "extremely cool" I mean something on the order of a decent JAPH,
although I'm not collecting JAPHs.  It can be a line of Perl or a
Perl command line.  It's okay if it's oblique, "bent," or
hard to understand, but it should not be deliberately obfuscated.
It should be efficient.  It should be instructive in some way.
It does NOT have to be general-purpose.

Submit as many as you like.

Proper credit and thanks WILL be given.  More details on where
this is headed later.

(Apologies in advance for the anti-spam mailbot.  It won't bother
you if you have a Newsgroups: line in your email to me.)

        -joseph

--
76% of all CGI questions posted in comp.lang.perl.misc are answered by:
"CGI.pm.  LWP.  http://www.perl.com/CPAN/modules/01modules.index.html."
....
Joseph N. Hall       http://www.5sigma.com/joseph/     jos...@5sigma.com
Proprietor, 5 Sigma Productions          P.O. Box 6250 Chandler AZ 85246
Perl instruction (http://www.5sigma.com/perl/), C++/C/Perl software,
web stuff, original music     >>>Perl questions? mailto:pe...@5sigma.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phil Abercrombie  
View profile  
 More options Nov 11 1996, 3:00 am
Newsgroups: comp.lang.perl.misc
From: Phil Abercrombie <p...@comp.vuw.ac.nz>
Date: 1996/11/11
Subject: Re: Wanted: one-liners

1.  This is my "which" script which finds multiple files in the path
    and allows wildcarding...  (circa 1994)

    #!/usr/bin/perl -l012
    $"=',';($p=$ENV{PATH})=~tr/:/,/;map-d||-x&&print,glob"{$p}/{@ARGV}";

2.  This is the bent thing i invented for doing "min($a,$b)"  (circa aug 1996)

    [ $a => $b ] -> [ $b <= $a ]


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »