I think the criticism is accurate, but I definitely do a lot of little glue programs that aren't interesting in terms of Perl, but are incredibly useful pragmatically. So, while programs like this aren't that interesting on a Perl-centric site like PM, pragmatic programs are good tools to build. I really enjoy it when someone in my lab asks me how to do something and I say "Aha! I have a script for that. Let me show you."
Here's one more small criticism: most people make ssh all caps or all lowercase.
Another thing you might do with your script is verify that permissions are correctly set on the .ssh directory and the authorized_keys file. Maybe add a usage message. Toss it into the Code Catacombs. Or even better, poke around there. I'm sure you're not the first person to do this. It's interesting to see how other people code programs to do the same thing, in terms of style, documentation and cool tricks. Reading the code of others critically is a great way to learn, and is one reason that I love PM.
Cheers and good luck with your programming.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||