How can I comment out a large block of perl code?

Ask a Question related to PERL Miscellaneous, Design and Development.

  1. #1

    Default How can I comment out a large block of perl code?

    $ perldoc -q 'How can I comment out a large block of perl code?' says
    to use =begin comment text, =end comment text, but I find the =end
    comment text does not stop the comment, printing only "1":
    print 1;

    =begin comment text

    all of this stuff

    here will be ignored
    by everyone

    =end comment text

    print 2;

    Wait, he meant to say use a =cut instead of =end comment text!

    Please report a bug for me, my bugs just go into a black hole.
    Dan Jacobson Guest

  2. Similar Questions and Discussions

    1. quick way to un-comment code?
      Hi, I'm use the code view to write coldfusion pages. I figured out how to quickly comment out a selected block of coldfusion code (created a...
    2. Comment Code
      Is there a better way to auto create the application comment headers. I have the below header information but have to manually update the creation...
    3. Text Block Too Large? MXa/XP
      Hey Folks, I'm trying to map a map index, but I'm running into an error message: "Could not complete the paste command because the text block is...
    4. mass-replacing large block of text
      I have ~97 HTML documents that I need to strip the footer (about 15 lines) from and replace with a different block of text. The footer is formatted...
    5. [PHP] How to comment out chunk of html/php mixed code?
      This won't work is your PHP code has comments using /* */ syntax in it already. I always just through an if(false){ } around huge portions of...
  3. #2

    Default Re: How can I comment out a large block of perl code?

    Dan Jacobson -> "How can I comment out a large block of perl code?" :

    DJ> $ perldoc -q 'How can I comment out a large block of perl code?'
    DJ> says to use =begin comment text, =end comment text, but I find the
    DJ> =end comment text does not stop the comment, printing only "1":
    DJ> print 1;

    DJ> =begin comment text

    DJ> all of this stuff

    DJ> here will be ignored by everyone

    DJ> =end comment text

    DJ> print 2;

    DJ> Wait, he meant to say use a =cut instead of =end comment text!

    I use next construction:

    =rem
    bla-bla-bla
    =cut

    Yury Kopyl aka hrg | [url]http://id.totem.ru[/url] | [TEAM Nemiroff ?????]

    Yury Kopyl Guest

  4. #3

    Default Re: How can I comment out a large block of perl code?

    Dan Jacobson <jidanni@jidanni.org> wrote in comp.lang.perl.misc:
    > $ perldoc -q 'How can I comment out a large block of perl code?' says
    > to use =begin comment text, =end comment text, but I find the =end
    [snip]
    > Wait, he meant to say use a =cut instead of =end comment text!
    It's probably a bug worth reporting.
    > Please report a bug for me, my bugs just go into a black hole.
    What do you mean? Some Cabale? Someone in the perlbug process is throwing
    out your reports?

    Your reports have the same chance to be accepted than everybody else's.
    An accompanying patch increases the chance considerably. Otherwise,
    doc patches are sometimes worked into the next version of the doc without
    tracing each change back to every reporter. Have you looked if your
    suggestions have been incorporated this way?

    Anno
    Anno Siegel Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139