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
'$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
,
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
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
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
, 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
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
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
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
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
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
? 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
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
: /[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
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
, 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
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
$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
öèòèðàì 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
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
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
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
...)
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
!) 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
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
--
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
26 matches
Mail list logo