toniax has asked for the wisdom of the Perl Monks concerning the following question:
sub x1_3o { open my $in, '<', $thefile or die "Can't read old file: $!"; open my $out, '>', "$thefile.new" or die "Can't write new file: $!"; while (<$in>) { if ($_ =~ /replaceme/) { print $out $_; print $out " <FORM METHOD = \"post\" ACTION = \"$script_url\" name=\"login\"> <table border=0 cellpadding=4 cellspacing=4 width=470> <tr> <td> <table><tr><td><br>\n"; } next if /replaceme/../replaceme/; print $out $_; } close $out; close $in;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Compress me
by moritz (Cardinal) on Nov 07, 2010 at 17:14 UTC | |
by toniax (Scribe) on Nov 07, 2010 at 18:30 UTC | |
|
Re: Compress me
by kcott (Archbishop) on Nov 07, 2010 at 17:37 UTC | |
by choroba (Cardinal) on Nov 07, 2010 at 23:11 UTC | |
by toniax (Scribe) on Nov 07, 2010 at 18:36 UTC | |
by kcott (Archbishop) on Nov 07, 2010 at 19:05 UTC | |
by toniax (Scribe) on Nov 07, 2010 at 21:37 UTC | |
|
Re: Compress me
by aquarium (Curate) on Nov 07, 2010 at 23:43 UTC | |
by toniax (Scribe) on Nov 09, 2010 at 00:03 UTC |