Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 ( #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
Node Status?
node history
Node Type: note [id://127465]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2020-01-28 20:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?