Pinto:...rAgent(3pm)

πŸ’– Pinto::Role::UserAgent πŸ’–

the manual name is Pinto:...rAgent(3pm) and it lives in the User Contributed Perl Documentation section, bestie. periodt. ✨


🌸 NAME 🌸

Pinto::Role::UserAgent β€” it's literally the thing that makes network requests. no cap. πŸ¦‹


πŸŽ€ VERSION πŸŽ€

version 0.14 πŸ’…


✨ METHODS ✨

okay so here's the actual tea, the two methods you get. sip slowly. πŸ“

🧚 mirror(RESOURCE => PATH)

Mirrors the resource located at "from" to the file located at PATH β€” but only if the RESOURCE is newer than the file at PATH. like, it's not gonna waste its time on something stale, she has standards. πŸ‘‘

If the intervening directories don't exist? bestie, she will create them for you. no questions, she just does it. 🫢

Returns a true value if the file has changed, returns false if it has not changed. Throws an exception if anything goes wrong. and by "anything" I mean anything, she does not do quiet failures. 😭

The RESOURCE can be either a URI or Path::Class::File object, or a string that represents either of those. The PATH can be a Path::Class::File object or a string that represents one. so flexible of her honestly. 🌈


πŸ¦‹ mirror_temporary(RESOURCE)

Mirrors RESOURCE to a file in a temporary directory. The file will have the same basename as the RESOURCE. πŸ’«

Returns a Path::Class::File that points to the new file. Throws and exception if anything goes wrong. πŸ‘€

🚨 IMPORTANT BESTIE 🚨 Note the temporary directory and all its contents will be deleted when the process terminates. like, gone gone. do not build your whole life around that file. πŸ’€

πŸ’œ AUTHOR πŸ’œ

Jeffrey Ryan Thalhammer <jeff@stratopan.com> β€” iconic, we love a legend. πŸ‘‘


This software is copyright (c) 2015 by Jeffrey Ryan Thalhammer. πŸŽ€

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. πŸͺ slay. ✨


and that's the whole vibe check, bestie β€” this page was rendered with perl v5.40.1 on 2025-04-21, and it's filed under Pinto:...rAgent(3pm). go forth and mirror things responsibly. mwah. πŸ’…πŸ’–

πŸ“¦ where this page comes from