what do lines starting with an "=" mean

C

coltrane

I am just learning javascript and I downloaded a js file from the jsan site.
Throughout the code there are lines that start with "=". What do these
lines mean. Also it seems that descriptive text is added without comment
delimiters. Can this be done?

this is taken from the file:

=head1 DESCRIPTION

This library provides tools to take a filepath and pull the directory
name and
filename out of it. This is much like the perl module 'File::Basename'
or the unix
shell tools of 'basename' and 'dirname'.

This type of tool can be useful if you need to process full paths on the
server in
request but want to display only filenames to the user.

=head2 Constructor

var file = new File.Basename(path, platform);

Create a new C<File.Basename> object.

=over

=item * path

File path to process

=item * platform I<optional>

A 'File.Basename' platform constant, this tells the object how to
process the filepath
it was given. If this is not passed the object will try to guess based
upon the
user agent string. If this is not available then it will default to UNIX.

For the platform constants see the section L<Constants> below.

=back

=head2 Class Properties

=head3 VERSION

File.Basename.VERSION

Current library version

=head2 Methods

=head3 basename()

file.basename();
 
C

coltrane

never mind, I just realized that all of these lines that start with an
"=" are all withing a comment block.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,999
Messages
2,570,244
Members
46,838
Latest member
KandiceChi

Latest Threads

Top