ve caught it
earlier.
=item Repeated format line will never terminate (~~ and @# incompatible)
(F) Your format contains the ~~ repeat-until-blank sequence and a
numeric field that will never go blan
really a dirhandle. Check your control flow.
=item Runaway format
(F) Your format contained the ~~ repeat-until-blank sequence, but it
produced 200 lines at once, and the 200th line looked exactly
####################################
1;
__END__
HEY YOU! You need some FOOD!
~~ Tangy Moroccan Carrot Salad ~~
* 6 to 8 medium carrots, peeled and then sliced in 1/4-inch rounds
* 1/4 teaspoon
MMD to C<< infix:<~~>() >>, which presumably
reflects similar semantics, but can finesse things that aren't exact
type matches. Note that all types are scalarized here. Both C<~~>
and C<given>/C<wh
en> provide scalar contexts to their arguments.
(You can always hyperize C<~~> explicitly, though.) So both C<$_>
and C<$x> here are potentially references to container objects.
And since lists promo
match if exists $_{all(list)}
Hash Rule hash key grep match if any($_.keys) ~~ /$x/
Hash Any hash entry existence match if exists $_{$x}
Hash .{Any} h
e;
supe Superset or equal ⊇
-= Equivalent ≡
~= Congruent to ≅
~~ Asymptotically equal to ≈
prop Proportional to ∝
=head3 Logical symbols
Ty
equiv", ttype=>"CONST" },
"~=" => { tag=>"mo", output=>"≅", tex=>"cong", ttype=>"CONST" },
"~~" => { tag=>"mo", output=>"≈", tex=>"approx", ttype=>"CONST" },
"prop" => { tag=>"mo", outpu
f ($head ~~ rx:P5"^HTTP\/\d+\.\d+\s+(\d+) (?:.*?\x0D?\x0A)((?:.*?\x0D?\x0A)*?)\x0D?\x0A") {
my ($code, $head) = ($0, $1);
given want {
when rx:P5/Bool/ {
$code ~~ rx:P5/^2
~$head
}
}
};
};
# Unify with URI.pm
sub split_uri (Str $url) {
$url ~~ rx:P5"^http://([^/:\@]+)(?::(\d+))?(/\S*)?$"; #/#--vim
my ($host) = $0;
my ($port) = $1 || 80
his into a todo test
my $buffer = slurp $hdl;
# 1 while ( $buffer ~= $hdl.read() and $buffer !~~ rx:P5"$CRLF$CRLF" );
# my ($status,@headers) = split /$CRLF/, $buffer;
# worry later about lar
se_request {
my Str $chunk = $.remote.readline;
defined $chunk or return undef;
$chunk ~~ m:P5/^(\w+)\s+(\S+)(?:\s+(\S+))?\r?$/;
my Str $method = $0 || '';
my Str $uri = $1 || '
te.readline {
$chunk ~~ s:P5/[\r\n\s]+$//;
if $chunk ~~ m:P5/^([\w\-]+): (.+)/ {
@headers.push( $0 => $1 );
}
last if $chunk ~~ m:P5/^$/;
}
return \
urn 0 };
$proto ||= 'HTTP/0.9';
$uri ~~ m:P5/([^?]*)(?:\?(.*))?/;
my Str $file = $0 || '';
my Str $query = $1 || '';
unless $method ~~ m:P5/^(?:GET|POST|HEAD)$/ {
self.bad
$request ~~ s:P5/\s+$//;
#diag $request;
if ($request ~~ rx:P5"^GET /stop-server/") {
$hdl.close;
last();
};
while (readline($hdl) ~~ rx:P5/\S/) {
);
for @urls -> $t_url {
my $url = $t_url;
$url ~~ s:P5/%s/$base_url/;
diag "Getting HEAD of $url";
my $head = head($url);
ok($head ~~ m:P5/.../, "Got some headers as scalar");
my @head
/");
for @live_urls -> $url {
diag "Getting HEAD of $url";
my $head = head($url);
ok( $head ~~ rx:P5/.../, "Got some headers as scalar");
my @head = head($url);
todo_ok( @head > 3, "Got mor
t
constructions involving state variables.
=head2 Implement $value ~~ 0 .. $range
It would be nice to extend the syntax of the C<~~> operator to also
understand numeric (and maybe alphanumeric) rang
ssoc named unary operators
nonassoc +< +> +<= +>= lt gt le ge
nonassoc == != <+> eq ne cmp ~~
left ^&^
left ^|^ ^^^
left &&
left || //
nonassoc ..
right ?:
left , =
han the right
argument.
X<cmp>
Binary "~~" does a smart match between its arguments. Smart matching
is described in L<perlsyn/"Smart matching in detail">.
X<~~>
"lt", "le", "ge", "gt" and "cmp" use
e tokeniser and pads.
=item state variable initialization in list context
=item Implement $value ~~ 0 .. $range
=item A does() built-in
=item Tied filehandles and write() don't mix
=item Attach/d
once SKIP {use feature 'state'; state $foo = 42;}
say SKIP {use feature 'say'; say "foo";}
smartmatch $x ~~ $y
aeach SKIP each @t
akeys SKIP keys @t
avalues SKIP values @t
custom SKIP (no way)
'^' . '<' x $cols . "\n"
. '$entry' . "\n"
. "\t^" . "<" x ($cols-8) . "~~\n"
. '$entry' . "\n"
. ".\n";
print $format if $Debugging;
eval
<<<<<<<<<<<<<<<<<<<<<<<~~
$entry
.
Voici un petit programme qui fait a peu près la même chose que S<fmt(1) :>
format =
^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ~~
$_
.
$/ = '';
wh
c les
opérateurs unaires suivants.
=item Runaway format
(F) Votre format contient la séquence ~~
repeter-jusqu'à-la-sequence-de-blanc, mais cela produit 200 lignes au
moins, et la 200è ligne ap
, $force) = (shift(@_), shift(@_));
my $val = __PACKAGE__->SUPER::new(+VALUE);
given($force // determine_type($arg))
{
when(+ARRAY)
{
my $data = $val-
eturn $content if defined($content) && length($content);
my $val = $node->firstChild();
given($val->nodeName())
{
when(+STRUCT)
{
my $struct = {};
{
return $type{$self};
}
}
sub determine_type($)
{
my $arg = shift(@_);
given($arg)
{
when(m@^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$@)
board {
my ( $self, $event ) = @_;
my $choice = $event->GetKeyCode();
given ( $choice ) {
when ( $_ == WXK_NUMPAD7 ) { $choice = 0 }
when ( $_ == WXK_NUMP
$self->{multi_answer_sizer} ) if ( $self->{curr_question}{answer_type} eq 'multi' );
given ($self->{curr_question}{answer_type}) {
when ( "text" ) { $self->load_text_answer; }
nes to list (a windowful).
$incr = $window - 1;
# Set the start to the argument given (if there was one).
$start = $1 if $1;
# Back up by the context amount.
given could not be opened.
=item Invalid quote specification "%s"
(F) The quote specification given (the quotes option to the constructor) was
invalid. A quote specification must be one, two, or f
e structure of the directory tree (including symbolic
links to directories) you might traverse a given (physical) directory
more than once (only if C<follow_fast> is in effect).
Furthermore, deleting
and C<D>.
=item hangul_terminator
-- see 7.1.4 Trailing Weights, UTS #10.
If a true value is given (non-zero but should be positive),
it will be added as a terminator primary weight to the end of
gives the token index of each token/non-terminal; then use this to
# create yy_type_tab.
#
# ie given (in perly.y),
#
# %token <opval> A
# %token <ival> B
# %type <pval> C
# %type <opval>