[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Having a problem with format



I think your terminating period has to be at the start of the line flush
at the left side, yours is tabbed in and this may break it.

I tried your code even under UNIX perl and it broke. By moving the period
flush left it fixes the problem.

John-

On Wed, 17 Sep 1997 WAMerrill@aol.com wrote:

> Hello,
> 
> I keep getting the compile error "Format not terminated, at end of line" with
> format.  I could not find anything wrong with my code so I copied the code
> example for format exactly out of MacPerl Help and got the same error.  The
> code from MacPerl Help and error messages follow.  Could anyone offer some
> advice?  I am new to MacPerl so any help would be very much appreciated!
>  Thank you.
> 
> Regards,
> Will
> 
> CODE COPIED FROM MACPERL HELP:
> -------------------------------
> format Something =
> 		        Test: @<<<<<<<< @||||| @>>>>>
> 		              $str,     $%,    '$' . int($num)
> 		    .
> 		
> 		    $str = "widget";
> 		    $num = $cost/$quantiy;
> 		    $~ = 'Something';
> 		    write;
> 
> ERROR MESSAGES FROM ABOVE CODE:
> --------------------------------
> # Format not terminated, at end of line
> File 'Hard Disk:MacPerl  :PERL Programs:print_format_test'; Line 11
> # Format not terminated, at end of line
> File 'Hard Disk:MacPerl  :PERL Programs:print_format_test'; Line 11
> # Execution of Hard Disk:MacPerl  :PERL Programs:print_format_test aborted
> due to compilation errors.
> 
> 
> ***** Want to unsubscribe from this list?
> ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch
> 


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch