Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Unable to obtain information from array

by Lotus1 (Vicar)
on Feb 16, 2017 at 21:10 UTC ( [id://1182169]=note: print w/replies, xml ) Need Help??


in reply to Re: Unable to obtain information from array
in thread Unable to obtain information from array

my (@md5subout, $md5subout); ... $md5subout = @foundmd5[0];

Using the same name for an array and a scalar works but is not considered a good practice since it is so confusing. You will get warnings from @foundmd5[0] since accessing an array element is a scalar and you are using '@'.

Scalar value @foundmd5[0] better written as $foundmd5[0] at ...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1182169]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-25 10:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found