Solved

What is stat.pl

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

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
Perl script to parse xml file 2 131
PHP equivalent of opening a com object 5 93
PERL - Find newest folder 12 162
File Find regex problem 4 67
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…
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
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…

685 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