Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2023-03-30 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (74 votes). Check out past polls.

    Notices?