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

Re: File::Rsync output functions and global variables

by robartes (Priest)
on Oct 08, 2003 at 15:55 UTC ( [id://297718]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to File::Rsync output functions and global variables

Well, it is supposed to be an example script that will not run, but it should at least be correct. So:
package MyModule; use File::Rsync; my %rsync_out; my $rsync=File::Rsync->new( { outfun => \&rsync_out, errfun => \&rsync_out, } ); ... sub rsync_out { my ($message, $type)=@_; $rsync_out{$type}.="$message\n"; }

CU
Robartes-

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://297718]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.