(no subject)
Jan. 5th, 2011 09:55 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Scalar::Util
Господи! Это каких же глюков можно наловить!
PS: Там еще в конце забавно: The weaken and isweak subroutines in this module and the patch to the core Perl were written in connection with the APress book ‘Tuomas J. Lukka’s Definitive Guide to Object-Oriented Programming in Perl’, to avoid explaining why certain things would have to be done in cumbersome ways.
dualvar NUM, STRING Returns a scalar that has the value NUM in a numeric context and the value STRING in a string context. $foo = dualvar 10, "Hello"; $num = $foo + 2; # 12 $str = $foo . " world"; # Hello world
Господи! Это каких же глюков можно наловить!
PS: Там еще в конце забавно: The weaken and isweak subroutines in this module and the patch to the core Perl were written in connection with the APress book ‘Tuomas J. Lukka’s Definitive Guide to Object-Oriented Programming in Perl’, to avoid explaining why certain things would have to be done in cumbersome ways.
no subject
Date: 2011-01-05 07:20 pm (UTC)no subject
Date: 2011-01-05 07:27 pm (UTC)Chromatic предлагает использовать для дебага
my $width = dualvar 800, 'Screen width';
my $height = dualvar 600, 'Screen height';
printf STDERR '%s is %d', $var, $var;
Но меня что-то не прёт.
no subject
Date: 2011-01-05 07:57 pm (UTC)no subject
Date: 2011-01-05 08:09 pm (UTC)no subject
Date: 2011-01-05 08:44 pm (UTC)Ржал.
no subject
Date: 2011-01-09 07:09 am (UTC)