Solved

What is stat.pl

Posted on 2004-03-25
3
184 Views
Last Modified: 2010-03-04
What is "stat.pl"  it is in a perl script that I have been given, and I have a feeling it is the reason it is not working.  Is it a perl module or seperate program that must be installed for my program to work?

#!/usr/bin/perl
#
#
require 'stat.pl';
0
Comment
Question by:obxsurfinfo
3 Comments
 
LVL 8

Accepted Solution

by:
davorg earned 50 total points
ID: 10677214
It's an old Perl 4 library that is still shipped with Perl for backwards compatibility with older programs that use it. On my system it's currently in /usr/lib/perl5/5.8.3/stat.pl.

Like all of the Perl 4 libraries that are shipped with Perl it should really be avoided as there are better ways to do thethings that it does.

If you've been given a program that uses it then that's a good sign that the program is either very old or written by somoene who doesn't keep up to date with Perl programming techniques. In both of those cases I'd view the program with deep suspicion.

Dave...
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question