Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: saving a file

by thezip (Vicar)
on Oct 23, 2007 at 21:46 UTC ( #646773=note: print w/ replies, xml ) Need Help??


in reply to saving a file

  • Where's strict???
  • Why are you using CGI?
  • "$sdata": double-quotes are unnecessary
  • Why do you unlink $scnt and $jscd, only to immediately open these files in clobber mode?
  • Perhaps a simple check like: (-e $sdata) || die qq(Dir "$sdata" doesn't exist...\n); would be beneficial
  • Your assignment for $scnt has a double-forward-slash in it

Where do you want *them* to go today?


Comment on Re: saving a file
Select or Download Code
Re^2: saving a file
by erroneousBollock (Curate) on Oct 24, 2007 at 01:46 UTC
    Why do you unlink $scnt and $jscd, only to immediately open these files in clobber mode?
    Could be a broken attempt at the unixy "open, unlink, ..., close" temp-file pattern...

    ...but more likely, it's an unnecessary "cleansing" of the working directory before creation of those files ;)

    -David

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2014-08-23 21:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (178 votes), past polls