Menu

Help with @var and @attr

Maku Bex
2013-05-15
2013-05-25
  • Maku Bex

    Maku Bex - 2013-05-15

    Hi Bret,

    I'm having trouble getting these tags to work on both Windows and Linux. I'm trying to have the documentation show variables and constants inherited.

    I declare them like so "use vars qw (name age address);" therefore the filter won't pick them up automatically, so I'm trying to add them to the documentation it like this:

    #** @var $name Name of person.
    #*
    
    or
    
    #** @var $name Name of person.
    #
    #*
    

    But nothing shows up in the documentation. I've tried with @attr, but nothing either. I've also tried adding the description after the first line or just adding the first line by itself.

    Could you give me an example on how to use these?

    Thanks in advanced.

     

    Last edit: Maku Bex 2013-05-15
    • Bret Jordan

      Bret Jordan - 2013-05-17

      You should leave off the dollar sign "$" in name such as:

      #** @var name Name of person
      #*
      
       
  • Maku Bex

    Maku Bex - 2013-05-25

    I tried that too with no success.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.