in reply to Compress me
You could write the if statement like:
if ($_ =~ /replaceme/) { print $out qq{$_ <FORM METHOD="post" ACTION="$script_url" name="login"> <table ...> ... }; }
Using qq{} (see perlop - Quote and Quote-like Operators) you can dispense with escaping the embedded quotes, you won't need the terminal newline and there's only one print statement. You could also use a here document which is described in the same documentation.
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Compress me
by choroba (Cardinal) on Nov 07, 2010 at 23:11 UTC | |
|
Re^2: Compress me
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 |