> Yes, that works for the web page
> but not for a heredoc wrapper.
Like I said in my first email, heredocs cannot interpolate
methods,subroutines, or functions. The Write() method of the $Response
object will not be handeling as expected in a heredoc. I usually do
this:
my $city = $Request->For
<%= %> tags can only contain a single variable. This works too:
<%
# perl code here
$Response->Write( $Request->Form('city')->{Item} );
%>
Yes, that works for the web page
but not for a heredoc wrapper.
Jim Doyle
___
Perl-Win32-Web mailing list
[
> but Active State still substitutes the name of the function represented by
> <%= , namely
> $Response->write($Request->Form( 'City' )->{Item} );
> The suggestion looked to be just what I wanted, but I'm still stuck.
<%= %> tags can only contain a single variable. This works too:
<%
# perl
Ron Grabowski suggested the use of <%= %>
City:
<%= $Request->Form('city')->{Item} %>
but Active State still substitutes the name of the function represented by
<%= , namely
$Response->write($Request->Form( 'City' )->{Item} );
The suggestion looked to be just what I wanted, but I'm sti
Jim Doyle wrote:
>
> Using CGI in a script written in Perl
> $Msg = < City: <%
> $Response->write($Request->Form('city')) ; %>
> MYHEREDOC
>
> the corresponding outputs are Win32::OLE=HASH(0x2e854a8)->writeblock(34);
write() is a subroutine and subroutines are not interpolated in
variables:
Using CGI in a script written in Perl
#!perl -w
use Mail::Sender ;
use CGI qw/:standard/ ;
my $q = new CGI ;
$q->import_names('Q');
$Msg = < City: $Q::city
MYHEREDOC
each one ofprint $Msg; print TFILE $Msg; $sender->Send( $Msg );
outputs City: New York
whereas when using PerlScri
> can anyone see anything wrong with this code? It's causing a blank page
> (with no errors) when i uncomment it..
Where is $q coming from? If its a 'new CGI;' object then you are
probably doing something wrong. The docs for HTTP::Cookie state:
use CGI qw/:standard/;
use CGI::Cookie;
-name
can anyone see anything wrong with this code? It's causing a blank page
(with no errors) when i uncomment it..
my $cookie = $q->cookie( -name=> "proj_num",
-value => $proj_num,
-path=> "/",
-expires => "+1h",
does somebody ever graped a shutcast stream ?
I want to save a mp3 stream of a shutcast radio, but i don't know how i
conect the server !
any hints ?
thanx ven
___
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman