On Apr 6, 2005 5:17 PM, Manish Sapariya wrote: > Hi List, > How do i convert a string variable returned by > some XPath API into a number so that I can > compare it or loop using this number. > > I am reading one number from XML and I want to > use it for looping. >
In general, conversion from a string to a number is transparent in Perl. "4" is the same as 4. HTH, -- Offer Kaye -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>