Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    Lisp::Fmt 0.01

    Download button

    No screenshots available
    Downloads: 860  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jeff Weisberg | More programs
    Perl Artistic License / FREE
    February 23rd, 2007, 06:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Lisp::Fmt description

    Lisp::Fmt is a Perl module for Common Lisp like formatting.

    Lisp::Fmt is a Perl module for Common Lisp like formatting.

    SYNOPSIS

    use Lisp::Fmt;
    $str = fmt("~{~a ~5,,,'*a~}", $a,$b,$c,$d); # store result in $str
    pfmt("~{ ~a~5,,,'*a~}", $a,$b,$c,$d); # print to stdout

    The Common Lisp "format" function provides an extremely rich set of formatting directives. This module brings this to Perl.

    The formatting directives all begin with a ~ and take the form: ~[N]{,N}[@][:]X

    where N is a number, X is a formatting directive, and @ and : are optional modifiers. Recognized directives are: A, S, W, D, O, B, X, R, C, P, T, ~, %, |, _, ?, *, n, {, }, (, ), [, ], , ^

    examples:

    C - simplest format spec, prints the arg
    C - prints a number in base 10
    C - prints a number in base 16
    C - prints a number in base 12
    C - prints a number in roman numerals
    C

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Common Lisp | formatting module | Perl module | Lisp::Fmt | Common | Lisp

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM