I noticed that PostgreSQL and Perl 6 have the same syntax for junctions (well, at least any)
samv=# select s from generate_series(1,20) s where s = any (select y f +rom generate_series(18,23) y) ; s ---- 18 19 20 (3 rows)
This year's perl:
perl -MPerl6::Junction=any -le 'for my $s (1..20) { if ($s == any(18..23) ) { print $s } }'
$h=$ENV{HOME};my@q=split/\n\n/,`cat $h/.quotes`;$s="$h/." ."signature";$t=`cat $s`;print$t,"\n",$q[rand($#q)],"\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl 6 Junctions and Postgres SQL
by dragonchild (Archbishop) on Dec 22, 2007 at 15:10 UTC | |
by grinder (Bishop) on Dec 22, 2007 at 16:20 UTC | |
|
Re: Perl 6 Junctions and Postgres SQL
by perlostitute (Initiate) on Dec 21, 2007 at 22:57 UTC | |
by mugwumpjism (Hermit) on Dec 22, 2007 at 00:54 UTC | |
by rhesa (Vicar) on Dec 22, 2007 at 01:36 UTC | |
by TimToady (Parson) on Dec 22, 2007 at 17:45 UTC |