FireBird34 has asked for the wisdom of the Perl Monks concerning the following question:
1) The file contents are stored into $remove.if($text =~ /!project remove/i){ open(REMOVE, ">project.pjt") || print $sock "PRIVMSG #channel :Sor +ry $nick, I can't remove a project."; $remove = <REMOVE>; $text =~ s/!project remove //gi; $text = "$text; "; $remove =~ s/$text//gi; print $sock "PRIVMSG #channel :$remove"; print REMOVE "$remove"; close REMOVE; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Write to file, after manipulation
by ibanix (Hermit) on Jan 28, 2003 at 04:02 UTC | |
by FireBird34 (Pilgrim) on Jan 28, 2003 at 05:08 UTC | |
by Aristotle (Chancellor) on Jan 28, 2003 at 11:53 UTC | |
by FireBird34 (Pilgrim) on Jan 28, 2003 at 20:02 UTC | |
by jdporter (Paladin) on Jan 28, 2003 at 19:54 UTC | |
by jdporter (Paladin) on Jan 29, 2003 at 20:06 UTC | |
by ibanix (Hermit) on Jan 28, 2003 at 22:01 UTC |