tosh has asked for the wisdom of the Perl Monks concerning the following question:
Well that didn't work because the chatterbox calls to $USER and makes some other function calls which aren't in the namespace.#!/usr/bin/perl use Everything; initEverything('DATABASE') or die "Couldn't connect to database!\n"; my $node = getNodeById(287) or die "Can't get chatterbox node!\n"; my $nl = updateNodelet($node); # insertNodelet didn't work either print $nl;
Can I do this?# filename = displayInMobilePhone.cgi use Everything; $chatter = getNode('chatterbox'); $loggedUsers = getNode('other users'); $chatter->makeXML; $loggedUsers->makeXML; ...other stuff... use Template; use XML::Simple; # or your personal choice $display = new Template(...); $xml = new XML::Simple(...); $chatterDATA = $xml->XMLin($chatter->{XML}); $usersDATA = $xml->XMLin($loggedUsers->{XML}); $display->parse('mobile.template', {chatter => $chatterDATA, users => +$usersDATA}); ....ta-da done!!!!!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Life, the Universe, and an Everything question
by PodMaster (Abbot) on Jul 25, 2002 at 13:36 UTC |