Edward WIJAYA wrote:
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

Why would you need that?

    my $string = '5';
    my $number = 5;
    print "Equal\n" if $string == $number;

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
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