1 Replies - 831 Views - Last Post: 08 October 2014 - 11:57 AM

#1 masterori  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 69
  • Joined: 27-January 14

Can someone explain somethings for me?

Posted 08 October 2014 - 11:03 AM

I'm trying to learn perl and have been asked to evaluate someone's code. But I'm not sure what these "things" are called to even search them up on google, so I need some explanations.

1. What's the difference between "use Something" vs "use Something ()" --> is the second one a list?
2. In terms of a constant: what does this mean "*Something = \4"? --> I searched perl constants but haven't found an example like that
3. What does "=>" mean - is it just an assignment?
e.g
my %something = (
    $Some::Thing => {
        $Some::Thing2     => 1,
        ...
    }

4. Difference between $something vs %something

Is This A Good Question/Topic? 0
  • +

Replies To: Can someone explain somethings for me?

#2 masterori  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 69
  • Joined: 27-January 14

Re: Can someone explain somethings for me?

Posted 08 October 2014 - 11:57 AM

Nevermind, I found a really good online book that answers questions 3 (maybe - it's a hash right? keys and values) and 4
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1