I have searched the Internet (1) and am unable to find how to read from the memory buffer from which I have copied text (using Ctrl-C, Select->Copy, ...) into a perl script. (2)
An example would be, from news.google.com, the story "Bank dividends may not be sacrosanct after all" at http://www.smh.com.au/business/banking-and-finance/bank-dividends-may-not-be-sacrosanct-after-all-20150930-gjy7hk.html (3) .
I would like to transform the above title into :
BankDividendsMayNotBeSacrosanctAfterAll
... and ultimately into :
20151001_smh_BankDividendsMayNotBeSacrosanctAfterAll.html
... which would be the name of the file to which I would save the HTML.
Footnote
(1) I have used the search terms "perl how-to read memory buffer" and "perl how-to read memory buffer -file".
(2) For now, I am trying to write a perl script to run from the command line on an xterm window. I would prefer to create a small rudimentary X11 input form. Is that possible with perl?
(3) Where the URL itself describes the page content, as in the given example, I use text fromm that URL, but many web pages don't have such descriptive URLs. I those cases, I copy the title of the page and begin to laboriously transform the title as I have shown.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |