Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- removing a line from a file
January 4, 2006, 1:03 pm
rate this thread
Re: removing a line from a file
$assign = join(':',
. "\n"; # I think
I think you want the $! variable in your diag message rather
than the $? variable.
What if the cp fails?
!system('cp /tmp/assign.tmp /tmp/assign') or
die "could not copy temp file: $? ";
(note the "not" operator and the (now) correct variable to be examining.)
Tad McClellan SGML consulting
firstname.lastname@example.org Perl programming
Fort Worth, Texas