Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

RE: Parsing File Timestamp?

by tenatious (Beadle)
on Aug 26, 2000 at 22:30 UTC ( #29825=note: print w/replies, xml ) Need Help??

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";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://29825]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2022-12-09 11:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?