perldoc > WWW::SearchResult

📛 NAME

WWW::SearchResult - class for results returned from WWW::Search

🚀 Quick Reference

Use CaseCommandDescription
🚀 Instantiate a new result object$result = new WWW::SearchResult();Creates a new WWW::SearchResult object.
🔗 Get the primary URL$result->url()Returns the primary URL for the result.
🔗 Get all URLs$result->urls()Returns a reference to the list of all URLs.
➕ Add a URL$result->add_url($url)Adds a URL to the list of URLs.
🏷️ Get the title$result->title()Returns the title of the result.
📝 Get the description$result->description()Returns the description of the result.
📊 Get the score$result->score()Returns the backend-specific numeric score.
📏 Get the size$result->size()Returns the approximate size in bytes.
🌐 Get the raw HTML$result->raw()Returns the raw HTML for the result entry.
🖨️ Convert to HTML$result->as_HTML()Converts the result to a human-readable HTML string.
➡️ Get the next result$search->next_result()Fetches the next result from the search object.

📝 SYNOPSIS

require WWW::Search;
require WWW::SearchResult;
$search = new WWW::Search;
$search->native_query(WWW::Search::escape_query($query));
# Get first result:
$result = $search->next_result();

📖 DESCRIPTION

A framework for returning the results of "WWW::Search".

⭐ REQUIRED RESULTS

The particular fields returned in a result are backend- (search engine-) dependent. However, all search engines are required to return a url and title. (This list may grow in the future.)

⚙️ METHODS AND FUNCTIONS

🔗 SEE ALSO

WWW::Search

✍️ AUTHOR

WWW::SearchResult was written by John Heidemann. WWW::SearchResult is maintained by Martin Thurn.

WWW::SearchResult
📛 NAME 🚀 Quick Reference 📝 SYNOPSIS 📖 DESCRIPTION ⭐ REQUIRED RESULTS ⚙️ METHODS AND FUNCTIONS 🔗 SEE ALSO ✍️ AUTHOR

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-19 15:11 @216.73.216.42
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^