Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: WML in perl

by Chady (Priest)
on Feb 21, 2004 at 08:17 UTC ( #330777=note: print w/ replies, xml ) Need Help??


in reply to WML in perl

It depends on what lies inside the $k elements of @$data, but either way, you may want to move your foreach loop to something roughly like:

print<<_WML_; <?xml version='1.0'?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card title="smsbook" id="smsbook"> _WML_ my ($data,$rows) = &get_sms($dbh,$userid); my $k; foreach $k (@$data){ print "<p>", @$k, "</p>\n"; } print " </card> </wml> ";

He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/


Comment on Re: WML in perl
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://330777]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2015-07-06 02:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (69 votes), past polls