Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • by eric256 (5939) on 2005.07.18 13:13 (#42011)
    Most commits this time around were related to javascript ouput but burried in the commit log was a little addition to .as() For those who haven't noticed perl 6 now lets you format strings with a .as method that takes the same arguments as sprintf. A recent commit extends this to include a few more options. use v6; # ------------------------------------------------------------------------ # r5666 | putter | 2005-07-18 09:49:34 -0600 (Mon, 18 Jul 2005) | 1 line # sprintf now handles X D U O E G F specifiers without crashing. Aankhen++. my $x = "500"; $x.as("%X").say; I'm hoping to provide examples both to teach myself more pugs and provide a more hands on approach to following developments. I love the journal, but an example here or there is nice.
    • Please use <ecode> instead of <code> tags for verbatim code blocks... Here is your post, reformatted. :)

      Most commits this time around were related to javascript ouput but burried in the commit log was a little addition to .as() For those who haven't noticed perl 6 now lets you format strings with the .as method that takes the same arguments as sprintf. A recent commit extends this to include a few more options.

      use v6;

      # -----------------------------------------------------------------------