in reply to printing "$" to php file
use strict; use warnings; print <<'_PHP1_'; <?php $client_aero = 'Aeropostale'; $aero_total = '72'; $aero_average = '70'; ?> _PHP1_ # Alternative using double quotes # Use this if you want to send perl variables to PHP my ($perl_client, $perl_total, $perl_avg) = ('Aeropostale',72,70); print <<"_PHP2_"; <?php \$client_aero = '$perl_client'; \$aero_total = '$perl_total'; \$aero_average = '$perl_avg'; ?> _PHP2_ exit 0;
Is a computer language with goto's totally Wirth-less?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: printing "$" to php file
by thanos1983 (Parson) on Jan 31, 2018 at 10:37 UTC | |
by flieckster (Scribe) on Feb 02, 2018 at 19:32 UTC |