If you are unlucky enough to be working with a sub that literally prints things out, but you would like to test what it is printing, you can intercept the prints using this lovely library:
use IO::CaptureOutput qw(capture);
my ($stdout, $stderr);
capture(sub { sub_that_prints_things($arg) }, \$stdout, \$stderr);
... now you've captured all the printed info from that sub into the two scalars!
This is very handy for testing.
... To Modern Software Development is a concise list of technical points for a software house to implement. It has a basis in Agile methodologies but doesn't preach a certain one.
Modern is being proactive and efficient. It is being prepared, having backups, examining information, deploying with minimal mistakes and being able to recover and review when mistakes are made. Modern is being well-tested and writing maintainable code. Modern is being able to release regularly and easily.
In my last full-time job I had to test some account creation and modification code. Certain actions sent emails when they were successful and I needed to find out whether the emails were received. I had to do this over multiple accounts, which ordinarily would involve multiple email addresses.
One solution might have been to setup multiple sendmail aliases on a local network.
The solution I used involved the website Mailinator. Using mailinator it is easy to setup multiple fake accounts in your code with different (and random) email addresses.
Django Python 960.gs Git Vim NetBSD Nginx
The author is a software engineer living in Australia. He sux at guitar, loves camping, doesn't like cake, does like coffee and is a lazy home brewer.
Help
Latest entries
*BSD Agile Apache Apple Athletics Beer Best-Practice Censorship Comedy Cool Crosswords Deployment Django English Exim Firefox Git Hardcore Health Interface irssi Javascript Jira Languages Linux Makefile Markdown Mathematics Mobile Broadband MySQL NetBSD nginx Nokia OSX Perl Photo Privacy Python Rant Requirements rsync Ruby Shell Slackware SQL SQLite SSH Standards Subversion Testing ThisBlog Vim VMWare (Fusion) VPN WDTEM X Yum zsh
Perldoc Output
Yum
Possum
Git's Index
Jira Project Keys
The Coffee Shop
Git GUI
It is more important...
Questioning Unix (and Other) File Times
The Frog King Photo
Rain Cloud Photo
rsync
Timezone
utf8 in your Perl
Theatre Ceiling Photo
Some problems are so complex...
Colours in your PAGER
zsh vared
zsh magic-equals and double-star
Funny Tweets
ChoppingBoard, Project365, RageQuit