The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
Search Results
Showing results 1 to 2 of 2
Search took
0.01
seconds.
Search:
Posts Made By:
usustarr
Forum:
Programming
05-18-2010
1
how to write a sub in Perl
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
3
How to write a new line to the end of the file in Perl?
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
Member Badges and Information Modal
×