Search Results

Search: Posts Made By: usustarr
Forum: Programming 05-18-2010
1,916
Posted By pseudocoder
#!/usr/bin/perl sub copy { # <-- in...
#!/usr/bin/perl


sub copy
{
# <-- in theory it should work if you replace this comment with the two lines from below
my($bit,$file,$data) = @_;

$string =`cat test.txt | grep archive`;
...
Forum: Programming 05-14-2010
9,203
Posted By pseudocoder
Probably you need to open the output file for...
Probably you need to open the output file for append mode, but you opened it for write mode.

Try
open IO,">> $file" or die "Cannot open $file for output: $!\n";
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 10:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy