I noticed a buglet in my script (I forgot to do case-insensitive
matching). So, here's a new, improved version:
tchk () {
#
# tchk - Check $T against $OldT for correct sort order.
#
# Note: Neither $T nor $OldT may contain spaces!
#
# Usage: tchk
if [ $# -ne 0 ]; then
echo !!! tchk:
At 4:02 PM -0800 3/17/02, Randal L. Schwartz wrote:
Obfuscated Perl and Golf are both uninteresting to me.
Ditto, but many FWP members seem to like them. So, I'm happy
to let the Golfers play through.
If those of us who have different interests fail to post items,
we have nobody but ourselves
Earlier, I mentioned the idea of replacing overly complicated
printfs with a print and some f function calls, as:
{
$a=1828;
$b=45;
print f(pi=%8.6f, ,355/113),
f(e=2.7$a$a$b%d$b\n, $b*2);
}
Now, f is really just shorthand for sprintf, but creating f
was
At 5:27 PM -0800 3/6/02, Yitzchak Scott-Thoennes wrote:
The format string is reused as often as necessary
to satisfy the arguments.
Where did you get that? Not true for Perl or C.
Apparently, when I did a man printf, I got the one in FreeBSD's Section 1:
PRINTF(1)
At 11:24 PM -0500 3/6/02, Uri Guttman wrote:
qn would be just like qq but not allow any
direct hash interpolations (%foo or %foo{bar}). you can always get those
with $() if needed. this solves the common case with a minimal of noise
and the uncommon case has a simple out of using $(). no