Hi
I am new to Perl scripting
I want to know , how the .pm extension files differ from the .pl files that are perl scripts . And what are the .pm files used in the perl files , are they just the subrotines that are used in the .pl files....
Any body knows abt this , if possible give an example or the link that explains on thes files?

.pm files are "Perl Modules" rather than perl scripts. They are Perl's objects.

To expand on what masijade said (which is correct): .pm files are library files. This means they contain subroutines that many programs may find useful. They can be used in a program as follows

require image_verify.pm

as an example. Your program will then be able to call subroutines within the file you called require on as if they had been pasted into the program.

Steven.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.