LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 11-20-2012, 11:29 AM   #1
electronpusher
LQ Newbie
 
Registered: Mar 2008
Posts: 14

Rep: Reputation: 0
Question procedural equivalent of OOP in Perl


Hi Ho !
I have been using Perl 5.10 and I recently tried Perl 5.14. I am truly allergic to OOP. In 5.10 this works:
Digest::MD5::addfile($md5, *FILE);
I VERY much prefer the above to:
$md5->addfile(*FILE);
In Perl 5.14 it does not work. Any way to make it work?

Thanks for ANY ideas--- but I have a feeling it is a lost cause--- and maybe I am just complaining for nothing ....
 
Old 11-20-2012, 02:58 PM   #2
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
Quote:
Originally Posted by electronpusher View Post
Hi Ho !
I have been using Perl 5.10 and I recently tried Perl 5.14. I am truly allergic to OOP. In 5.10 this works:
Digest::MD5::addfile($md5, *FILE);
I VERY much prefer the above to:
$md5->addfile(*FILE);
In Perl 5.14 it does not work. Any way to make it work?

Thanks for ANY ideas--- but I have a feeling it is a lost cause--- and maybe I am just complaining for nothing ....
You need to show what exactly doesn't work.

And you can install the needed module(s) locally (And even build Perl locally to start from, i.e. as non-root user), and insert the diagnostic 'print' statements ('warn' statements) in order to debug it.

Or use Perl debugger.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [Perl] OOP Accessor Method for Array Attributes and Append Method brianmcgee Programming 1 10-18-2010 11:05 AM
Perl equivalent of shell for & listener Programming 2 03-26-2010 10:37 AM
procedural generation ktek General 2 09-17-2008 07:08 PM
bash equivalent of <perl -e 'print time'> teabag_46 Linux - Newbie 2 10-23-2007 03:04 PM
The perl equivalent... Ateo Programming 4 04-09-2005 02:23 AM


All times are GMT -5. The time now is 09:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration