Skip to content

Instantly share code, notes, and snippets.

$ perl6 t/01-fieldparsing.t 1..8
ok 1 - Simple left block field parses
ok 2 - Simple right block field parses
ok 3 - Simple left line field parses
ok 4 - Simple right line field parses
ok 5 - Simple block justified field parses
ok 6 - Simple line justified field parses
ok 7 - Simple centred line field parses
ok 8 - Simple centred block field parses
$ perl6 t/02-parseactions.t
$ ./proto
*** CONFIG FILE CREATED ***
Greetings. I have created a file 'config.proto' that you may want to review.
Next time you run './proto', these settings will be used to bootstrap your
system into a working Perl 6 installation.
If you're new to this, or if configure settings scare you, you probably want
the default settings anyway.
$ perl6 -e 'eval($cmd).perl.say while my $cmd = prompt("pow> ")'
pow> int [~] reverse split "", [*] 1..4
42
pow> [~] sort 'otoW'.split: ''
"Woot"
pow>
$
In October 2006, Damian Conway released an alpha draft of <a
href="http://perlcabal.org/syn/S26.html">S26</a>, the Perl 6 synopsis about
Pod documentation. It begins "Before Christmas, as promised!". It's large, but
even for an alpha, it's a good read.
The release of the draft spurred a whole lot of discussion on the
perl6-language mailing list. People seem to care a lot about these
things. Late November the same year, Damian posted a version of S26 without
the 'alpha' in its version number. He also promised to release a Pod-to-XHTML
module. (He eventually <a
I'd like to take this opportunity to announce Form[1], a Perl 6 project
by Matthew Walton. It's a port to Perl 6 of Damian Conway's
Perl6::Form[2], and is meant to replace the C<format> built-in in
Perl 5.[3][4]
Form is still in its early stages, but is already showing great promise.
Consider downloading it and trying it out, or even contributing.
[1] http://github.com/mattw/form/
[2] http://search.cpan.org/dist/Perl6-Form/Form.pm
masak@pele:~$ svnadmin create experimental-repo
masak@pele:~$ mkdir experiment
masak@pele:~$ mkdir experiment/trunk
masak@pele:~$ mkdir experiment/branches
masak@pele:~$ mkdir experiment/tags
masak@pele:~$ echo This is an experiment. > experiment/trunk/README
masak@pele:~$ svn import experiment file:///home/masak/experimental-repo/experiment -m 'Initial import'
Adding experiment/trunk
Adding experiment/trunk/README
Adding experiment/branches
NC(1) BSD General Commands Manual NC(1)
NAME
nc -- arbitrary TCP and UDP connections and listens
SYNOPSIS
nc [-46DdhklnrtUuvz] [-i interval] [-p source_port]
[-s source_ip_address] [-w timeout] [-X proxy_protocol] [-x
proxy_address[:port]] [hostname] [port[s]]
$ pwd
/tmp
$ git clone git://github.com/viklund/november.git
$ git clone git://github.com/masak/html-template.git
$ export RAKUDO_DIR=$PARROT_DIR/languages/rakudo
$ export PERL6LIB=$RAKUDO_DIR:/tmp/november/lib:/tmp/html-template/lib
$ cd html-template/
$ perl Makefile.PL
$ make
$ cd ../november/
rakudo$ git diff
diff --git a/src/setting/Any-str.pm b/src/setting/Any-str.pm
index be0082b..66348a1 100644
--- a/src/setting/Any-str.pm
+++ b/src/setting/Any-str.pm
@@ -111,4 +111,10 @@ sub unpack($template, $target) {
}
}
+# TODO: '$filename as Str' once support for that is in place
$ cat things-I-know-about-Buf
A C<Buf> is a stringish view of an array of
integers, and has no Unicode or character properties without explicit
conversion to some kind of C<Str>. (A C<buf> is the native counterpart.)
Typically it's an array of bytes serving as a buffer. Bitwise
operations on a C<Buf> treat the entire buffer as a single large
integer. Bitwise operations on a C<Str> generally fail unless the
C<Str> in question can provide an abstract C<Buf> interface somehow.
Coercion to C<Buf> should generally invalidate the C<Str> interface.
As a generic type C<Buf> may be instantiated as (or bound to) any