develooper Front page | perl.perl6.internals | Postings from July 2002

[netlabs #757] Problem mixing labels, comments and quote-marks

Thread Next
From:
Simon Glover
Date:
July 2, 2002 18:21
Subject:
[netlabs #757] Problem mixing labels, comments and quote-marks
Message ID:
rt-757-3549.11.5274986948766@netlabs
# New Ticket Created by  Simon Glover 
# Please include the string:  [netlabs #757]
# in the subject line of all future correspondence about this issue. 
# <URL: http://bugs6.perl.org/rt2/Ticket/Display.html?id=757 >



 This code:

  A:            # prints "a"
      print "a"
      end

  doesn't assemble; the assembler dies with the error message:

    Use of uninitialized value in hash element at assemble.pl line 844.
    Couldn't find operator '' on line 1.

  If you remove the ""s from the comment, it works fine. Likewise, if
  you put the label, op and comment on the same line, ie:

   A: print "a"   # prints "a"
     end

  then it assembles and runs OK.

  Simon




Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About