Loading ...
Sorry, an error occurred while loading the content.

[PBML] Re: # comments

Expand Messages
  • Dave Hannum
    Hello James, In answer to your quesiton, yes - Perl disregards anything in a line after the # sign except for the shebang on the first line. Example:
    Message 1 of 2 , Sep 9, 1999
    • 0 Attachment
      Hello James,

      In answer to your quesiton, yes - Perl disregards anything in a line after the # sign except for the shebang on the first line.

      Example:

      ###########################################
      # This &$')(#%*'n program won't run
      ###########################################

      OR

      #! /usr/local/bin/perl -w
      use CGI; # what the !*#$ is CGI?

      Get my drift?

      =================================
      "Technology" is stuff that was invented after
      you were born.

      David Hannum
      Web Analyst/Programmer
      Ohio University
      hannum@...
      (740) 597-2524



      ----- Original Message -----
      From: James Fox <james@...>
      To: <perl-beginner@egroups.com>
      Sent: Thursday, September 09, 1999 10:02 AM
      Subject: [PBML] # comments


      Hello,

      I'm new to this list, let me do a very small intoduction.

      <boring bit>
      I'm James Fox, working in Sheffield, England, for a consultancy
      called DJ Associates http://www.djassociates.com
      </boring bit>

      Anyway, the question I want to ask is, when you make a comment
      in a perl script like this - #comment
      Are you allowed to use symbols within the comment, such as -'&
      could I get away with this...?
      # comment - please don't edit.

      Or wouldn't it work?

      Cheers
      James

      :: James Fox
      :: DJ Associates
      :: Tel: +44 (0)114 2210525
      :: Fax: +44 (0)114 2493450
      :: 113 days to go!

      ------------------------------------------------------------------------
      Want the power to purchase wisely? Productopia has the answers.
      http://clickhere.egroups.com/click/553


      eGroups.com home: http://www.egroups.com/group/perl-beginner
      http://www.egroups.com - Simplifying group communications
    Your message has been successfully submitted and would be delivered to recipients shortly.