Timothy J. Massey wrote:
> for ( my $i = 0 ; ; $i++ ) {
> $reqFileName = "archiveReq.$$.$i";
> last if ( !-f "$TopDir/pc/$archivehost/$reqFileName" );
> }
>
> The last digit is generated by loop to the first digit that doesn't
> already exist in a file (in case you have stacked up more than one
> archive job). Seeing as I don't know perl, I can't figure out what the
> "$$" does, and trying to google for "perl $$" doesn't help...
>
The $$ should be the pid (process ID) of the perl script which is
running at the time - ie, a unique number at this instant.
Regards,
Adam
--
Adam Goryachev
Website Managers
Ph: +61 2 8304 0000 [EMAIL PROTECTED]
Fax: +61 2 8304 0001 www.websitemanagers.com.au
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/