Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?


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?


Replies are listed 'Best First'.
by Limbic~Region (Chancellor) on Sep 07, 2003 at 04:49 UTC
    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

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://289547]
[Corion]: Hmm - HTC Vive reduces its price to EUR 700 (from EUR 900). Now I have to look what graphics cards prices are - maybe a good enough VR rig can be had for EUR 1500 now instead of EUR 2000(+)
[Corion]: Hmm - nVidia GTX 1070 + Vive makes EUR 1130, leaving EUR 370 for CPU+case+cooler+ RAM - not bad
[Corion]: (I'm not a fan of AMD)
[Corion]: On the other hand, the Radeon 580 RX would cost 380 instead of 430 ... But still, that's ATi and I've been unhappy with ATi drivers the two times I had one in my desktops

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2017-08-21 08:35 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (319 votes). Check out past polls.