readme.txt' => 'README',
);
my @Tempfiles = qw(
pod2htmd.tmp
pod2htmd.x~~
pod2htmi.tmp
pod2htmi.x~~
);
use strict;
use File::Copy;
local $/;
foreach my $target (keys %TEXT) {
.
*/
var ObservableMethodProvider = {
/**
* Will return an observable function on the method given (as a string)
* bound to the called instance and will return the same observable
* function e
ry is assumed for the value C<root>. All files returned by the file system will be rooted at the given (or assumed) point. No file outside of that point is accessible.
=head1 NODE TYPES
There are th
isplay the B<~> character, you will need to
use two of them, as in:
"Tilde needs escaping as in ~~"
which ends up printing:
Tilde needs escaping as in ~
=head1 LINGUISTIC RULES
We have coined
|
~[\[\]\~] # ~[, ~], ~~
|
\[ # [ pr
readme.txt' => 'README',
);
my @Tempfiles = qw(
pod2htmd.tmp
pod2htmd.x~~
pod2htmi.tmp
pod2htmi.x~~
);
use strict;
use File::Copy;
local $/;
foreach my $target (keys %TEXT) {
nce
INCLUSIVE OR || or
EXCLUSIVE OR ~~ xor
DEFINED OR // err
But why call i
EXPR1)) {
if ($_ =~ (EXPR2)) { ... }
}
[Update: the C<=~> operator has been renamed C<~~>.]
=head3 Table 1: Matching a switch value against a case value
$a $b Type of Ma
an operator on every case, simply provide an empty given,
to be read as "given nothing...":
given () {
when $a.isa(Ant) { ... }
when $b.isa(Bat) { ... }
when $c.isa(Cat) {
}
}
This works because =~ is considered a boolean operator.
[Update: The operator is C<~~> now.]
RFC:
catch not &TooSevere => { ... }
Now:
when not &TooSevere { ... }
The unar
Url is not given.",
'no_url' => "No urls are given.",
'no_rk' => "No cookies are given (Maybe not logined)",
}->{$code};
$self->{'last_errcode'} = $code;
$self->{'last_err
LE> or C<DONE>.
One control structure is provided, which is basically an C<if> statement:
GIVEN (NOT)? /REGEXP/ {
ACTION+
}
=head2 EXPORT
parse_received
=head1 SEE ALSO
L<Mail::
.page;
my $name = lc $.revision.attributes<kontent:title>;
$name ~~ s:g/<[ _]>+/_/;
$name ~~ s:g/\W//;
$page.name = $name;
}
$rev.commit();
}
}
else
_<kontent:title> = lc $p<title> // ~$_<kontent:title>;
$_<kontent:title> ~~ s:g/<[ _]>+/_/;
$_<kontent:title> ~~ s:g/\W//;
my $page=$rev.page;
$page.name = $_<kontent:title>;
{
temp our $x = $x * 10;
for *$contents {
take "<!--\n {++$x}: {ref $_} -->";
if $_ ~~ Str {
take "<![CDATA[$_]]>";
}
else {
take "<!-- first: {ref $_[0]} -->";
take $
take " $k='$v'";
}
}
if @.children {
take ">";
for @.children {
if $_ ~~ Str {
take "<![CDATA[$_]]>";
}
else {
take $_.process_xml();
}
}
everything else deleted entirely.
my $name = lc $_<kontent:title>;
$name ~~ s:g/<[ _]>+/_/;
$name ~~ s:g/\W//;
$page.name = $name;
}
if %p<action> eq 'save' {
$r
of the (j1,j2,m,m1,m2,j) values;
Returns a list of Quantum::ClebschGordan objects based on the given (j1,j2,m,m1,m2,j) values for the current object. If any of those values are unset, then there wil
it's all just "perl 6" regardless of the runtime they are going to use on the system.
[foo.p6]
given (use (perl5:DBI | java:JDBC)) {
when /perl5/ { ... }
when /java/ { ... }
};
[foo.p6o]
-
es_out,time()-$timestart,0);
return 0;
}
# We did!
# Now to populate the hash we were given (if asked to)
if (defined $req_hash) {
%{$req_hash}=();
my ($k,$v);
while(($k,$v)=e
$name } = \&$subname;
$lazyloads{ $pkg }{ $name } = $func;
}
return ~~1;
}
sub unlazyload
{
my $pkg = shift;
foreach my $name ( keys %{ $la
delete $lazyloads{ $pkg }{ $name };
}
delete $lazyloads{ $pkg };
return ~~1;
}
sub _build
{
my @x = @{$_[0]};
my $func = shift @x;
$_[0
_build() failed to build a new object\n"
if ref($_[0]) eq __PACKAGE__;
return ~~1;
}
sub lazyload_one
{
my ($pkg, $name, @args) = @_;
die "Must pass
ry is assumed for the value C<root>. All files returned by the file system will be rooted at the given (or assumed) point.
=cut
sub new {
my $class = shift;
my %args = @_;
$args{root} ||= '.';
>
activated diversions. If C<$num> is C<0>, deactivates all activated
diversions. If C<$name> is given (i.e. the argument is not numeric), it
deactivates all last activated diversion up to and includi
spect. But you're welcome to test it
# out.
my $host = shift @ARGV || "~~test_host~~";
my $dbname = shift @ARGV || "~~test_db~~";
# That's the standard perl way tostart a testscript. It announces th
QL" && $mdriver ne "mSQL1") {
print "1..0\n";
exit 0;
}
print "1..70\n";
}
use ~~nodbd_driver~~;
# Force yourself to strict programming. See man strict for details.
use strict;
# Variab
in two steps: (1) Connect and (2) SelectDB...
if ($dbh = ~~nodbd_driver~~->connect($host)){
print "ok 1\n";
} else {
$~~nodbd_driver~~::db_errstr ||= "";
my $onhost = $host ? " (on $host)