The Tips
Apparently, perldoc -f vec
writes 16-bit / 32-bit / 64-bit quantities in big endian
byte order, including on little endian architectures such as x86. This may cause issues when writing
XS / etc. bindings.
I ended up using the following approach on x86-64 Linux…
This is another "recent hacktivity log" of some of the open source
work I've been up to lately.
New Command-Line App: App-Du-Analyze
App-Du-Analyze
(with its command-line script of "analyze-du") is now available on CPAN. What
it does is allow you to analyse the output of the UNIX
"du" command,
get results based on a prefix and a depth, and sort them. It is my preference
for a disk usage analyser, with the benefit of being able to run several
queries on the …
perlopentut
gives several
options for opening a file for read and write, and I opted to use
'+>'
for
Maniac
Downloader, but as it turned out, it caused the existing file to be
clobbered (= its length to be set to zero and all of its contents deleted).
After asking on Freenode's #perl channel, we reached this solution …
It is known that one can label loops (or arbitrary blocks) in Perl 5, using
the syntax of MYLABEL: while (COND()) { BLOCK }
or MYLABEL: for my $x (@array) { BLOCK }
and then one can
do last MYLABEL;
, next MYLABEL;
, or
redo MYLABEL;
(for more information see
perldoc perlsyn).
However, I was unable to find how to do something
like that in Perl 6, despite some amo…