From: Caleb E. <ca...@bk...> - 2001-05-16 19:39:17
|
On Wed, May 16, 2001 at 03:31:28PM -0400, John Moose wrote: > Does anyone know how $$ (process ID) works on non-UNIX systems? This > is used along with a random number to create a unique file name in > the replace_file function. It would probably be a good idea to take > that out if there are portability problems. At least on Windows, this is also a process ID which will be unique for any process running at that time, so you should be pretty safe: [15:37:57] c:\cygwin\usr\x11r6\bin>perl -d -e1 Default die handler restored. Loading DB routines from perl5db.pl version 1.07 Editor support available. Enter h or `h h' for help, or `perldoc perldebug' for more help. main::(-e:1): 1 DB<1> print "$^O $$\n" MSWin32 356 DB<2> -- cae at bklyn dot org | Caleb Epstein | bklyn . org | Brooklyn Dust Bunny Mfg. |