OptiPerl can help you make and test perl scripts that are

 

  • Console
  • CGI standalone or invoked from a form
  • CGI that are server-side includes

 

Because perl scripts are often used with HTML, XML pages, OptiPerl also supports editing and syntax coloring for most tag-languages plus other languages.

 

To create a new file, select File / New / New Script for a Perl script or File / New / New HTML for a html document. For other types of files or common templates of Perl scripts, select File / New / Choose from template.

 

 

Creating and adding your own file templates

 

When you select the menu File / New / Choose from templates, the actual directory structure of the subfolder Templates in OptiPerl's installation folder is shown. You can modify the existing templates or create your own depending on your personal or team needs. You can also add more folders or subfolders here.

 

 

About the line endings of files

 

Depending on the operating system, different characters are used to mark the end of line (EOL) in text files:

 

  • Window's use \r\n (characters 0a 0d hex)
  • UNIX - Linux uses \n (character 0a hex)
  • Mac uses \r (character 0d hex)

 

In OptiPerl you can open or create any type of the above text files. When opening a file, its EOL sequence is recognized and displayed in menu File by selecting one of "Windows", "Unix" or "Mac" format menu items. You can change the format by selecting a different item and then save the file.

 

When creating a file you can select a default EOL character in Options Dialog / Default.

 

icon_idea If you are uploading via FTP and have selected "text" as transfer, then selecting any EOL character will not be important, since the remote FTP server will change the line endings as needed. However if you are uploading via Secure FTP, then you will need to select a correct line ending sequence.

 

 

Top  Previous  Next