Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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
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 meditating upon the Monastery: (5)
As of 2015-07-07 05:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls