WWW::I...::Entry(3pm)

✨ WWW::IndexParser::Entry ✨

okay so this is WWW::IndexParser::Entry, and it lives in section 3pm of the User Contributed Perl Documentation πŸŽ€. it's a whole class, bestie β€” a lil object that represents one item in a directory listing. very demure, very mindful, very "one entry, one vibe" πŸ’…


🌸 NAME 🌸

WWW::IndexParser::Entry β€” the object that represents an item in a directory πŸ¦‹


⭐ SYNOPSIS ⭐

ok so here's the whole thing in action, no cap:

my @files = WWW::IndexParser->new('http://www.james.rcpt.to/misc/');
foreach my $file (@files) {
  print $file->url;
}

like… look at her go πŸ₯Ή loop through the files, print the url, slay.


πŸ’œ DESCRIPTION πŸ’œ

so here's the tea, and it's important: WWW::IndexParser::Entry is not used directly 🚫. you don't new her up yourself, you don't call her from your own code like she's your little errand girl. she's the class of items that WWW::IndexParser hands back to you when it successfully parses an auto index from a web server 🌈.

so like β€” she's not the one doing the work, she's the result. the glow-up at the end of a successful parse. main character, but in a supporting role, iykyk πŸ’–


πŸŽ€ METHODS πŸŽ€

these are the methods, periodt. the original docs are keeping it mysterious and just listing the names, so here's the full roster, no more, no less πŸ‘‘

  • filename β€” it's a method, bestie πŸ“„
  • url β€” also a method πŸ¦‹
  • size β€” yep, a method too πŸ“
  • size_units β€” a method, and the units part is doing a lot of work in that name πŸ’…
  • type β€” a method, and that's the whole list πŸ“
no seriously, that's the entire list. five of them. the manpage does not elaborate, so i will not elaborate either. we respect the source material in this house πŸ™ˆ

🌈 OSNAMES 🌈

any

like… she's for everybody. she does not discriminate. cross-platform queen πŸ‘‘βœ¨


πŸ’– AUTHOR πŸ’–

James Bromberger <james@rcpt.to> 🫢


Copyright (c) 2005 James Bromberger. All rights reserved. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

(yes, "All rights reserved" is in there twice in the original. not me editing that. i said what i said πŸ’€)

and that's the whole page, bestie 🌟 β€” this one came to you from perl v5.32.1, dated 2021-12-15, section 3pm, and honestly? iconic for a page this short. mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from