Profile

cnoocy: green a-e ligature (Default)
(boing!) Cnoocy Mosque O'Witz

Expand Cut Tags

No cut tags
cnoocy: green a-e ligature (Default)
[personal profile] cnoocy

#!/usr/bin/perl

use strict;

my $x = shift;
my $o = shift;
$o ||= ' ';
$x ||= '*';

while (1){
select (undef, undef, undef, 0.5);
my $t = `date +%s`;
my $s = sprintf "%b\n", $t;
$s =~ s/1/$x/g;
$s =~ s/0/$o/g;
print $s;
}


Run on a unix machine, pick one-character arguments if desired, pipe through uniq.
ETA: 08:37:04 on Saturday morning, Eastern Time.

Date: 2004-01-09 01:25 pm (UTC)
From: [identity profile] rikchik.livejournal.com
Annoyingly, binary.perl 1 0 doesn't work, since 0 is not true.
How about $o ||= ' ' unless $o eq '0'; ?

Date: 2004-01-09 01:37 pm (UTC)
From: [identity profile] thenetimp.livejournal.com
You gotta problem with it. ;-)

Date: 2004-01-09 10:33 pm (UTC)
From: [identity profile] thenetimp.livejournal.com
Well that's good. For a second I thought I was going to have to flame your lj. (~_^)

Date: 2004-01-09 01:49 pm (UTC)
From: [identity profile] aspartaimee.livejournal.com
um. yeah. i am wearing new socks today.

Date: 2004-01-10 09:04 am (UTC)
From: [identity profile] aspartaimee.livejournal.com
wouldn't that be awesome!?

but no. they are green. i do have some red mary jane's, though.

Most Popular Tags

Style Credit

Page generated Jun. 29th, 2025 03:55 pm
Powered by Dreamwidth Studios