Help for this page

Select Code to Download


  1. or download this
    # read info
    # and then we are ready to build our filename
    ...
    $filename="myfile_".$time.".txt";
    
    # (and then just print using $filename)
    
  2. or download this
    $time = scalar localtime;
    $time =~ tr/ /_/; #get rid of the spaces;
    $filename = "myfile-".$time.".txt";