Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

TMTOWTDI

by webmasta (Initiate)
on Sep 07, 2003 at 04:40 UTC ( #289547=note: print w/ replies, xml ) Need Help??


in reply to Re: Where and how to start learning Perl
in thread Where and how to start learning Perl

For learning Perl the TMTOWTDI paradigm of Perl applies:
there's more than one way to do it.


#So how come theres only one way to do comments?
hmmm...

webM


Comment on TMTOWTDI
Replies are listed 'Best First'.
Re: TMTOWTDI
by Limbic~Region (Chancellor) on Sep 07, 2003 at 04:49 UTC
    webmasta,
    To my knowledge there are quite a few ways to do comments.
  • # comment goes here
  • POD comments documenting your code
  • __END__ comments follow
  • Acme::Comment

    I have even seen some people use here docs for comments, though it really is code. I am sure creative monks have found even more.

    Cheers - L~R

Re: TMTOWTDI
by NetWallah (Abbot) on Sep 07, 2003 at 06:12 UTC
    use strict; my $TMTOWTDI = "There IS more than one way to do it"; my $MeaningfulVariableName = "Is another way"; $MeaningfulVariableName =0, "And if you get creative, even more"; *SomeOtherWayToSayIt = *MeaningfulVariableName ; SomeSubroutine($MeaningfulVariableName , "Extra arg used as a comment +");
    I'm sure there are other creative ways to do it - I'm not recommending any of this - it's just that this node invited a challenge.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2016-02-11 14:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (370 votes), past polls