in reply to Automatically creating incremental file names
If you were tryingopen (IMG , '>out.png') or die $!;
You would have to use double quotes so $$ is interpolated. You didn't show the example of you using the pid for the filename so I could off on your problem.open (IMG , '>$$.png') or die $!;
my $filename = $$ . time() . '.png';
|
|---|