Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: How do I find if anything was removed from using the int or sprintf function?

by chipmunk (Parson)
on Nov 26, 2001 at 06:33 UTC ( [id://127465]=note: print w/replies, xml ) Need Help??


in reply to How do I find if anything was removed from using the int or sprintf function?

Here is one way to do it, using int:
my $total = $sth->rows; my $perPage = 20; my $pageCount = int(($total + $perPage - 1) / $perPage);
  • Comment on Re: How do I find if anything was removed from using the int or sprintf function?
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (8)
As of 2024-04-25 11:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found