Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: sed deleting file

by snoopy (Deacon)
on Dec 06, 2010 at 20:59 UTC ( #875690=note: print w/replies, xml ) Need Help??


in reply to sed deleting file

Its always a good idea to do basic status checking of even the most trivial system call. There's always a chance of failure on a live system. For example:
  • incorrect path setup
  • exhaustion of resources such as physical disk
  • shell not available
  • permissions or process limits
  • missing utilities (although unlikely with sed)
  • many others ....
system "sed 's/,)/)/' pbxiplp > pbxiplp1" and die "system call failed: $!";
See also system.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://875690]
help
Chatterbox?
Discipulus another oneliner for my quiver, if a silly one
[marto]: Beware the one liner :p
[Discipulus]: no, they are my crossword/sudoku like entertainment
Discipulus grins

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2017-09-22 08:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (260 votes). Check out past polls.

    Notices?