Re: fun with hashes!

2007-11-24 Thread Vladi Belperchinov-Shabanski
the damned thing: $dispatch{ $key || 'default' }-(); Which still may trigger Can't use string () as a subroutine ref while strict refs in use at ... :) David -- Vladi Belperchinov-Shabanski [EMAIL PROTECTED] [EMAIL PROTECTED] http://cade.datamax.bg/ pgp/gpg key id: 6F35B214 (pgp.mit.edu

Re: fun with hashes!

2007-11-23 Thread Vladi Belperchinov-Shabanski
'$sub' } )-(); or { ... || ... }-() just to avoid problems like: print ( $dispatch{$sub} || sub { warn } )-(); -- Vladi Belperchinov-Shabanski [EMAIL PROTECTED] [EMAIL PROTECTED] http://cade.datamax.bg/ pgp/gpg key id: 6F35B214 (pgp.mit.edu) -- equally destructive as we are, don't you

Re: Unknown level of hash

2005-03-28 Thread Vladi Belperchinov-Shabanski
, john -- Vladi Belperchinov-Shabanski [EMAIL PROTECTED] [EMAIL PROTECTED] http://cade.datamax.bg/ pgp/gpg key id: 6F35B214 (pgp.mit.edu) Cross the ocean deep, wake now from your sleep Kiss the past goodbye, don't follow empty skies

Re: Secret operators

2005-02-02 Thread Vladi Belperchinov-Shabanski
of any perl running on any non twos complement machine. will not work if $x 0 /-\ Find local movie times and trailers on Yahoo! Movies. http://au.movies.yahoo.com -- Vladi Belperchinov-Shabanski [EMAIL PROTECTED] [EMAIL PROTECTED] Personal home page at http://cade.datamax.bg/ DataMax

Re: Secret operators

2005-02-01 Thread Vladi Belperchinov-Shabanski
secrets here, though I never thought of such () use. thanks for the hint :)) -- Vladi Belperchinov-Shabanski [EMAIL PROTECTED] [EMAIL PROTECTED] Personal home page at http://cade.datamax.bg/ DataMax SA http://www.datamax.bg there is still one truth on which we can depend we've started something

Re: P2P in 15 lines

2004-12-15 Thread Vladi Belperchinov-Shabanski
, there are so many issues like security, redirection etc. but still a shot into plain client/server httpd direction :))) P! Vladi. ps: sorry for duplicates, wrong account :/ -- Vladi Belperchinov-Shabanski [EMAIL PROTECTED] [EMAIL PROTECTED] Personal home page at http://cade.datamax.bg/ DataMax SA

Re: Dynamically creating a hash for keys()

2004-10-19 Thread Vladi Belperchinov-Shabanski
On Tue, 19 Oct 2004 16:10:01 -0500 [EMAIL PROTECTED] wrote: Vladi Belperchinov-Shabanski [EMAIL PROTECTED]: :skip values: : :%hash = qw( fred filntstone barney rubble tom delong ); :print( map { $a=!$a ? $_ : () } reverse( %hash ) ); : :perhaps not too bad map() example :) : :P

Re: Golf challenge: Tangled Tale

2004-06-26 Thread Vladi Belperchinov-Shabanski
they stand, and then one on Tuesday morning with the final scores. Send me your solutions after Tuesday morning and I'll post them (that way I don't have to disqualify myself!) -b Vladi Belperchinov-Shabanski wrote: I'd prefer to have golf contest referee. He/She will receive the solutions

Re: Golf challenge: Tangled Tale

2004-06-24 Thread Vladi Belperchinov-Shabanski
is to print out all possible solutions to the puzzle, in a readable format (i.e. put some spaces between your numbers). Cheers, Brad -- Vladi Belperchinov-Shabanski [EMAIL PROTECTED] [EMAIL PROTECTED] http://cade.datamax.bg/ Cross the ocean deep, wake now from your sleep Kiss

my if?

2003-07-01 Thread Vladi Belperchinov-Shabanski
expected output is: [] [] [1] the only explanation I see is that `my' is executed only once, and $id most of the time is global (i.e. packaged) so `strict' is fooled... any ideas? P! Vladi. -- Vladi Belperchinov-Shabanski [EMAIL PROTECTED] [EMAIL PROTECTED] Personal home page at http

Re: my if?

2003-07-01 Thread Vladi Belperchinov-Shabanski
On Tue, 1 Jul 2003 10:30:34 -0400 Ronald J Kimball [EMAIL PROTECTED] wrote: On Tue, Jul 01, 2003 at 05:15:09PM +0300, Vladi Belperchinov-Shabanski wrote: my $id = 1 if $_ == 3; my has a compile time behavior and a runtime behavior. At compile time, my allocates memory for the variable

Re: my if?

2003-07-01 Thread Vladi Belperchinov-Shabanski
? expr; # invalid :))) anyway I got this shade of gray, thanx. :) On Tue, 01 Jul 2003 10:40:26 -0400 Bernie Cosell [EMAIL PROTECTED] wrote: On 1 Jul 2003 at 17:15, Vladi Belperchinov-Shabanski wrote: this one: use strict; for(1..3) { my $id = 1 if $_ == 3; print [$id]\n

Re: are we having fun yet?

2003-05-29 Thread Vladi Belperchinov-Shabanski
On Sat, 24 May 2003 19:24:12 -0400 Keith C. Ivey [EMAIL PROTECTED] wrote: Vladi Belperchinov-Shabanski [EMAIL PROTECTED] wrote: $days = 31; $days-- unless $mon % 2; yes, my mistake, this line should be: $days-- unless ($mon + ( $mon 7 )) % 2; :) if( $mon == 2 ) { $days

Re: Zip/Postal codes.

2003-01-05 Thread Vladi Belperchinov-Shabanski
: /[A-Z]\d[A-Z] \d[A-Z]\d/, but does Canada use all 26 letters? Is there any checksum buildin? For all other countries, I've nothing so far. Can anyone help? Abigail -- Vladi Belperchinov-Shabanski [EMAIL PROTECTED] [EMAIL PROTECTED] http://soul.datamax.bg/~cade Welcome to this crazy

Re: Out of memory perl script

2002-11-26 Thread Vladi Belperchinov-Shabanski
the $command? I'm new so I don't really know what this could be or where to look for help, thanks in advance, Jacob -- Vladi Belperchinov-Shabanski [EMAIL PROTECTED] [EMAIL PROTECTED] Personal home page at http://www.biscom.net/~cade DataMax Ltd. http://www.datamax.bg Too many hopes

Re: limit the list

2002-11-21 Thread Vladi Belperchinov-Shabanski
, anyway. -- Regards, Aristotle -- Vladi Belperchinov-Shabanski [EMAIL PROTECTED] [EMAIL PROTECTED] Personal home page at http://www.biscom.net/~cade DataMax Ltd. http://www.datamax.bg Too many hopes and dreams won't see the light... msg02764/pgp0.pgp Description: PGP signature

Re: limit the list

2002-11-21 Thread Vladi Belperchinov-Shabanski
oops sorry I've made mistake :( the correct one is: @arr = qw( this is just a testtestetstett ); $res; for( @arr ) { $res .= etc...,, last if length $res$_ 10; $res .= $_,; } chop( $res ); print $res\n; :) P! Vladi. On Thu, 21 Nov 2002 15:01:49 +0200 Vladi Belperchinov-Shabanski

Re: AW: Function parameter passing (was: Re: limit the list)

2002-11-20 Thread Vladi Belperchinov-Shabanski
$j = $_[3]; my $l = $_[4]; 1; } combines the best from both forms above ( i.e. cna be commented, clean and approx. as fast as `my ( ... ) = @_' thing. P! Vladi. better or even worse in your view? Joachim -- Vladi Belperchinov-Shabanski [EMAIL PROTECTED] [EMAIL PROTECTED] Personal

Re: [OT] Unicode vs URI escaping

2002-11-19 Thread Vladi Belperchinov-Shabanski
öèòèðàì Ian Phillipps [EMAIL PROTECTED]: On Tue, 19 Nov 2002 at 11:30:17 +0200, Vladi Belperchinov-Shabanski wrote: hi! I hope I understand the problem correctly, i.e. `how to escape'? In this case I always prefer: our %ESCMAP = (); for ( 0 .. 255 ) { $ESCMAP{ chr

Re: ~9M lines of data

2002-10-25 Thread Vladi Belperchinov-Shabanski
and (my) perl way: #!/usr/bin/perl -n $c = 50 if /CREATE TABLE/; print if $c and $c--; P! Vladi. -- Vladi Belperchinov-Shabanski [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.biscom.net/~cade http://cade.webbg.com msg02621/pgp0.pgp Description: PGP signature

Re: removing extra empty lines

2002-09-29 Thread Vladi Belperchinov-Shabanski
be an elegant way to do this? Warmest Regards, Lev Selector -- Vladi Belperchinov-Shabanski [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.biscom.net/~cade http://cade.webbg.com Now, sure as the sun will cross the sky, This lie is over Lost, like the tears that used

Re: Possible improvements for the next golf apocalypse

2001-12-10 Thread Vladi Belperchinov-Shabanski
this program and make it shorter' type challenge though. And that could be something with reasonably complex behaviour... YES! I like it... :) P! Vladi. -- Vladi Belperchinov-Shabanski [EMAIL PROTECTED] [EMAIL PROTECTED] Personal home page at http://www.biscom.net/~cade DataMax Ltd. http

Re: The Santa Claus Golf Apocalypse

2001-12-05 Thread Vladi Belperchinov-Shabanski
...) btw: I'm more interested if there is fancy rev.pl version instead of the obvious (usual) one? I fixed several times each one of the holes except this one... anyway, I'm at 97 w/o undocumented tricks :) and I think to stop here... P! Vladi. -- Vladi Belperchinov-Shabanski [EMAIL

I vote...

2001-12-05 Thread Vladi Belperchinov-Shabanski
!) the -p11.. tail works? :) -- Vladi Belperchinov-Shabanski [EMAIL PROTECTED] [EMAIL PROTECTED] Personal home page at http://www.biscom.net/~cade DataMax Ltd. http://www.datamax.bg Too many hopes and dreams won't see the light... smime.p7s Description: S/MIME Cryptographic Signature

Re: The Santa Claus Golf Apocalypse

2001-12-05 Thread Vladi Belperchinov-Shabanski
of the top-5 to fwp, and let everyone comment, including the competitors. Please let me know when you think we should end the game. As soon as possible. Eugene -- Vladi Belperchinov-Shabanski [EMAIL PROTECTED] [EMAIL PROTECTED] Personal home page at http://www.biscom.net/~cade DataMax Ltd

Re: Feel good benchmarks

2001-11-20 Thread Vladi Belperchinov-Shabanski
-- Vladi Belperchinov-Shabanski [EMAIL PROTECTED] [EMAIL PROTECTED] Personal home page at http://www.biscom.net/~cade DataMax Ltd. http://www.datamax.bg Too many hopes and dreams won't see the light... smime.p7s Description: S/MIME Cryptographic Signature