[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] sprintf cheat sheet



After having my own 'fun' with sprintf man pages last week, I thought it 
would be nice to have something the camel and llama both lack - a short list
of commonly used sprintf examples for those of us "man page impaired" types
who learn the rules from examples much faster than from the man pages.

Something along the lines of..

"%-25s"     left justified, filled with trailing spaces to 25 characters
"%02d"      two digits, padded with leading zeros

Now that my knowledge is exhausted, does anyone know of such a list, or do
we need to assign a volunteer?

Steve Swantz
sneakers@nwaalpa.org

===============================================
sub purify_the_earth {
    if ( -e 'spammer' ) {
        chmod (755, 'spammer')  # open season!
    }
}
===============================================

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org