XP is just a number | |
PerlMonks |
Re^3: Progress Bar in Perl scriptby kcott (Archbishop) |
on Mar 13, 2013 at 14:46 UTC ( [id://1023216]=note: print w/replies, xml ) | Need Help?? |
Each of the sails is created by prepending a "\b" to the spinner character:
"\b" is a backspace character; so, when each sail is printed, it deletes the previous one. In the initial state, "Running:" is followed by two spaces (print q{Running: };); the second space is overwritten by the first sail. "\b", and other special characters, are listed in perlop: Quote and Quote-like Operators. -- Ken
In Section
Seekers of Perl Wisdom
|
|