Solved

What is stat.pl

Posted on 2004-03-25
3
193 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
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…

739 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