Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: Gaim to read from a file using Perl?
by The Mad Hatter (Priest) on Nov 30, 2003 at 16:44 UTC

    Here's a plugin that will do it for you. Put it in the plugins directory for Gaim, restart Gaim, and then load it via Preferences -> Plugins. When talking to someone, if you send a message in the format of /send /path/to/file the contents of /path/to/file will be sent to them. If you wanted, you could also make the contents display in the IM window for you, but I'll leave that as an exercise to try out yourself.

    This plugin uses the new Gaim Perl API, so make sure you have a pretty recent copy (I tested it on 0.74). Be aware that there are message size limits in AIM (and most other protocols) that this plugin does not take into account; you may get "Unable to send message" dialogs if the file contents are too big. If the file doesn't exist, this plugin leaves the message untouched (i.e. the user you're sending it to will see exactly what you typed).

    Finally, to learn more about Gaim plugins, check out the examples in the source tree (downloadable from the website) and the API doc (online version is slightly outdated).

Re: Gaim to read from a file using Perl?
by ysth (Canon) on Nov 30, 2003 at 12:18 UTC
    Yes; Perl is a programming language that can read files. If you could provide a little more information, it would better enable us to direct you to appropriate resources. Can you say what you want to do with the data once you've read it? Have you had exposure to any kind of computer programming or would Perl be your first?

    Some of the links here may get you started.

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Gaim to read from a file using Perl?
by tachyon (Chancellor) on Nov 30, 2003 at 12:05 UTC

    Yes, almost everything is possible with Perl.

    cheers

    tachyon