Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Create HTML files using perl on the fly

by hossman (Prior)
on Nov 20, 2007 at 17:43 UTC ( [id://651972]=note: print w/replies, xml ) Need Help??


in reply to Create HTML files using perl on the fly

Ditto everything ww said. in addition...

  • when posting Code Contributions please use a more descriptive description then just cutting and pasting the title of your post ... what does your code do? why might people want to use it? how would people go about using it if they wanted to?
  • to be frank: your code doesn't seem that useful beyond a single use case -- the only input it takes in is a directory name to write a file whose name is hardcoded, and all of the data that will be written to that file is hardcoded ... the mount of time necessary for someone to customize your script to be useful for them seems like it would be approximately the same amount of time as if they wrote their own script.
  • your first few error messages don't distinguish themselves ... they give no indication of what the problem was with the file.
  • you don't need to use "system('rm')" to delete a file, that's what unlink is for.

Replies are listed 'Best First'.
Re^2: Create HTML files using perl on the fly
by girarde (Hermit) on Dec 17, 2007 at 16:07 UTC
    There are also, as it happens, systems on which there is no rm. unlink travels better.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-19 15:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found