Format Options: Strings
- Between the % and letter can exist options
- A space-padded string:
printf "Look at all -> %15s <- space\n", "this";
- Use negative numbers for left-justified
printf "Look at all -> %-15s <- space\n", "this";
| CPU: Perl, Fall 2005 | Perl, Week 4: More Arrays, Context, Subroutines, Lexical Variables | #18 |
printf "Look at all -> %15s <- space\n", "this";
printf "Look at all -> %-15s <- space\n", "this";
| Copyright © 2005 Ian Langworth |