# Remainder of a division in Perl

**URL:** <https://forum.kirupa.com/t/remainder-of-a-division-in-perl/280158>\
**Category:** programming\
**Created:** [January 23, 2009, 3:29pm UTC](https://forum.kirupa.com/t/remainder-of-a-division-in-perl/280158 "2009-01-23T15:29:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamhere](https://avatars.discourse-cdn.com/v4/letter/i/c57346/32.png) [@iamhere](https://forum.kirupa.com/u/iamhere)\
**Post date:** [January 23, 2009, 3:29pm UTC](https://forum.kirupa.com/t/remainder-of-a-division-in-perl/280158/1 "2009-01-23T15:29:51Z")

</div>

Hello,  
If I’m carrying out a division, say with $a=57 and $b=5, if I carry out a division $a/$b, I would like the remainder in another variable, say $c - how do I do that?

Thanks.
