On Thu, Jun 12, 2008 at 12:15 AM, beast <[EMAIL PROTECTED]> wrote: > Hi All, > > > Why this following code has not working as expected? > > print "Number of element(s) : " . sprintf("%10d", keys(%hash) ) . "\n"; >
Try: print "Number of element(s): " . sprintf("%10d", scalar keys(%h)),"\n"; > > Thanks. > > --budhi > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > http://learn.perl.org/ > > > -- [ Rodrick R. Brown ] http://www.rodrickbrown.com http://www.linkedin.com/in/rodrickbrown