develooper Front page | perl.perl6.users | Postings from August 2018

string to integer?

Thread Next
From:
ToddAndMargo
Date:
August 6, 2018 20:58
Subject:
string to integer?
Message ID:
24799941-7f68-9a00-563c-5f84b544a242@zoho.com
Hi All,

How do I assign a string that looks like an integer
into an interger?

$str = "601"  -- > $int = 601


Many thanks,
-T

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About