Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: printf confusion

by BlueLines (Hermit)
on Feb 21, 2001 at 07:25 UTC ( [id://59840]=note: print w/replies, xml ) Need Help??


in reply to printf confusion

This is fine. You just need to do sanity checking on $_->link, which (in theory) usually is a number (14.4, 28.8), but can also be a string (DSL, CABLE, Unknown). Change the %4d to %-6s for instance, and everything will work fine.

BlueLines

Disclaimer: This post may contain inaccurate information, be habit forming, cause atomic warfare between peaceful countries, speed up male pattern baldness, interfere with your cable reception, exile you from certain third world countries, ruin your marriage, and generally spoil your day. No batteries included, no strings attached, your mileage may vary.

Log In?
Username:
Password:

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

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

    No recent polls found