Edward WIJAYA wrote:
Hi,

Hello,

How can I change the value of this array:

@array = ['1','2','3']; #which contain "string" numeric

to

@arrayNum = [1,2,3]; #as pure numeric

As far as perl is concerned they are the same. If you use a string in numeric context it becomes a number and if you use a number in string context it becomes a string.



John -- use Perl; program fulfillment

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to