, 16 2009 . 11:30
+
XML . , , , XML :
XML XML::LibXML , , , , , , :
my $context = new XML::LibXML::XPathContext;
$context->registerNs('yablogs', 'urn:yandex-blogs');
my @codeNodes = $context->findnodes("yablogs:$nodeName/text()", $node);
.
, 16 2009 . 11:11
+
, ( 3 ) . , 3 . - . -
use Unix::PID '/var/run/my-config-build.pid';
, , . ( LA) , .
pid - 3-4 . , - . - .
- , , ?
upd: ,
use Unix::PID '/var/run/this.pid';
use Unix::PID;
Unix::PID->new()->pid_file_no_unlink('/var/run/this.pid')
or die 'The PID in /var/run/this.pid is still running.';
, - .
, 16 2009 . 11:06
+
$discounts = _hasDiscounts($service); #returns 1
$data->{hasDiscounts} = $discounts; # now it is 1
warn $o->isCustomPrice; # returns 1
$data->{hasDiscounts} = undef if $o->isCustomPrice; # 1
# - print $data->{hasDiscounts} (***)
#warn $data->{hasDiscounts}; # - - undef, .
- , , .. undef .
- ?
#perl -v
This is perl, v5.8.8 built for i486-linux-gnu-thread-multi
upd:, *** - .
print - print, , , fastcgi . - ( ), , HTML::CTPP2.
, 16 2009 . 10:50
+
use v5.10, , :-)
use v5.10 :
use feature ':5.10';
Perl 5.10.1 ( 5.10) . :
use feature ':5.10.1';
use feature ':5.10';
Perl 5.10, , Perl 5.10.1 , :
use feature ':5.10.3';
Perl 5.10 :
Feature bundle "5.10.1" is not supported by Perl 5.10.0 at usefeature.pl line 1
BEGIN failed--compilation aborted at usefeature.pl line 1.
, use feature use vX.Y.Z. :
use v5.10.3;
say "test";
Perl v5.10.3 required--this is only v5.10.1, stopped at usefeature.pl line 1.
BEGIN failed--compilation aborted at usefeature.pl line 1.