Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: Format, empty vars, and fixed-width records

by ikegami (Patriarch)
on Apr 22, 2008 at 02:56 UTC ( [id://682073]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Format, empty vars, and fixed-width records
in thread Format, empty vars, and fixed-width records

You could handle number overflow like Excel does:

sub format_num { my $s = sprintf('%5.2f', $_[0]); return length($s) > 5 ? 'XXXXX' : $s; }

Replies are listed 'Best First'.
Re^5: Format, empty vars, and fixed-width records
by BrowserUk (Patriarch) on Apr 22, 2008 at 03:32 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://682073]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2024-04-20 03:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found