in reply to Extend a module
use Net::FTP; package Net::FTP; sub my_new_FTP_method { ... }; package main; # your script here $ftp = Net::FTP->new("some.host.name", Debug => 0) or die "Cannot connect to some.host.name: $@"; $ftp->my_new_FTP_method;
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Extend a module
by salva (Canon) on Jul 07, 2009 at 06:53 UTC | |
by CountZero (Bishop) on Jul 07, 2009 at 11:55 UTC | |
by Anonymous Monk on Jul 07, 2009 at 11:59 UTC | |
by CountZero (Bishop) on Jul 07, 2009 at 16:25 UTC |