Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Think about Loose Coupling
 
PerlMonks  

Re: Multiline comments

by dimar (Curate)
on Jun 05, 2004 at 15:02 UTC ( [id://361652]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Multiline comments

It's time for @#$! multiline comments in perl!

Yeah yeah, I know ...

  • use 'here docs' (poor option)
  • use 'POD' (interferes with docs and no indenting)
  • use 'ACME::Comment' (requires module install rights)
  • use the 'q' operator (unsuitable for serious use)

q`<!-- --------------------------- <region-function_docs> main: - name : DoFoo desc : do some foo usage: DoFoo($optional_greeting); </region-function_docs> --------------------------- -->`if(000); sub DoFoo{ my $optional_greeting = shift || 'Hello World'; print "$optional_greeting\n"; print "we are now doing foo\n"; print "\n"; }###end_sub

So just write your code like that and problem (solved?).

Update: this workaround option parses free of warnings and errors, but is unsuitable for serious use in perl.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://361652]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.