Bruno Postle > Panotools-Script-0.27 > Panotools::Makefile::Comment

Download:
Panotools-Script-0.27.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: Panotools-Script-0.28

NAME ^

Panotools::Makefile::Comment - Assemble Makefile Comment lines

SYNOPSIS ^

Simple interface for generating Makefile syntax

DESCRIPTION ^

Writing Makefiles directly from perl scripts with print and "\t" etc... is prone to error, this library provides a simple perl interface for assembling Makefiles.

USAGE ^

  my $note = new Panotools::Makefile::Comment;

..or add text at the same time:

  my $note = new Panotools::Makefile::Comment ('Warning, may not eat your cat!');

Add lines to the comment:

  $note->Lines ('..but it might...', '...sometimes');

Construct a text fragment suitable for use in a Makefile like so:

  $text = $note->Assemble;
syntax highlighting: