when i axsess a value from an hash it dose nothing

M

Matt Garrish

%foo = {i=>1,b=>2};

That's not how you declare a hash. Please ask perl to help you before you
ask others to do so:

use strict;
use warnings;
my %foo = {i=>1,b=>2};
my %bar = (i=>1,b=>2);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top