Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^2: mask.pl_v0.1_alpha

by thor (Priest)
on Jul 19, 2004 at 02:57 UTC ( #375450=note: print w/replies, xml ) Need Help??

in reply to Re: mask.pl_v0.1_alpha
in thread mask.pl_v0.1_alpha

Get rid of system("rm -rf $file.tmp") # remove temp file
Why? Is it because that's better said as unlink "$file.tmp" or warn "Couldn't remove $file.tmp: $!"? Or is it because you don't want to remove the temp file? As with all of this stuff, you're welcome to implement the author's idea in any way that you wish on your own system


Replies are listed 'Best First'.
Re^3: mask.pl_v0.1_alpha
by Anonymous Monk on Jul 19, 2004 at 03:36 UTC
    Yes better written as unlink (portability, safety). and always some foolish person reuse -recursive and accidentally deletes all his files.
      You know, I was a C coder, so I still use a C-like syntax and some C-like code in my perl scripts. I'll get rid of that soon, anyway.

      "Considerate la vostra semenza:
          Fatti non foste a viver come bruti,     Ma per seguir virtute e canoscenza"
      Divina Commedia, Inverno, Canto XXVI

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2023-03-26 00:39 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (63 votes). Check out past polls.