Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Prior art reference, and comment

by submersible_toaster (Chaplain)
on Nov 21, 2002 at 23:58 UTC ( [id://214960]=note: print w/replies, xml ) Need Help??


in reply to Prior art reference, and comment
in thread Perl Programming guidelines/rules

How many systems are you backing up Bill the Anonymous Monk ? Are you going to deploy the script to every corner of the network, hack the configuration each time? What happens when the script is revised ? Magically diff the code updates from the variable hacks and then what. The OO call to Backup.pm could easily be a single config file. Update the module often as you like , all the config stays where it should be.

Backup->new( "/etc/sys-backup.cfg" );

If I've typed it twice already, how many more times today before I make it a method? $self->grumpy_reply(\$parent) : )

Replies are listed 'Best First'.
Re: Prior art reference, and comment
by Abigail-II (Bishop) on Nov 22, 2002 at 14:10 UTC
    What, you really think OO is the only way to archieve this? Don't be silly.
    use Backup; Backup::doit config => "/etc/sys-backup.cfg";

    works as well as an OO-wrapper.

    I've written backup programs in Perl as well. It did use a configuration file, and the functionality was changed without the need to change the interface. And guess what? It wasn't OO!

    Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://214960]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-19 20:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found