?
Solved

What is stat.pl

Posted on 2004-03-25
3
Medium Priority
?
201 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 200 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
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…
Six Sigma Control Plans

801 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