[BackupPC-users] *BUMP* Re: BackupPC perl code hacking question... (Craig any chance you might have a suggestion?)
2010-12-19 13:29:04
Jeffrey J. Kosowsky wrote at about 12:53:28 -0500 on Monday, December 13, 2010:
> For reasons I can explain later, I am trying to set
> $Conf{RsyncdPasswd} in the main routine of BackupPC_dump (I am
> actually trying to do something a bit more complex but this is easier
> to understand).
>
> Now since %Conf = $bpc->Conf(), I would have thought that for example
> setting $Conf{RsyncPasswd} = "mypasswd" would then be pushed down to
> all the routines called directly or indirectly from BackupPC_dump.
>
> However, in Rsync.pm where the value of $Conf{RsyncPasswd} is actually
> used, the value remains at ''.
>
> (Of course setting the paramter the "normal" way within a config file
> works and shows up as set in Rsync.pm)
>
> So why isn't it working when I set it at the top level?
> And what would I have to set at the top level to make it properly
> passed to Rsync.pm?
>
> I'm sure I must be missing something about how perl inherits and/or
> overwrites variables... but I am stumped here...
>
> ------------------------------------------------------------------------------
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> _______________________________________________
> BackupPC-users mailing list
> BackupPC-users AT lists.sourceforge DOT net
> List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki: http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|
|
|