Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Formatting Your Output

by varalaxmibbnl (Acolyte)
on Aug 29, 2013 at 06:54 UTC ( #1051366=perlquestion: print w/ replies, xml ) Need Help??
varalaxmibbnl has asked for the wisdom of the Perl Monks concerning the following question:

if i execute this code i get a compile error as"Format not terminated at end of line syntax error" provide me a solution for this....

#!/usr/local/bin/perl $~ = "MYFORMAT"; write; format MYFORMAT = =================================== Here is the text I want to display. =================================== .

Comment on Formatting Your Output
Download Code
Re: Formatting Your Output
by choroba (Canon) on Aug 29, 2013 at 07:02 UTC
    The lines of the script (except the shebang line) seem to start with a space. It is OK for commands, but the format must end with a dot that is the first character on the line. Remove the space before the dot.
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      thanks its working now

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1051366]
Approved by kcott
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2015-03-05 03:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (135 votes), past polls