Solved

What is stat.pl

Posted on 2004-03-25
3
161 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

705 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now