in reply to Re: Re (tilly) 1: New sections and move one
in thread New sections and move one
I remain unconvinced. For pure Perl modules on CPAN I have had good luck under Windows just downloading, untarring, and then copying them manually. Other than the need to find something that will handle .tar.gz files on Windows, I don't see what is gained by having such modules on PerlMonks.
As for the examples that you give, your routines make perfect sense if you are working in a language like VB with poor string handling capability. But in Perl I, and I think most experienced Perl developers, find it much easier and more reasonable to just inline the regular expressions in question where needed.
A better example might be something like:
But how many truly useful ones are there? The fact is that the built-ins in Perl combined with its flexibility make a lot of the basic utility functions you might write in a different language (VB, C, etc) pretty much useless. I cannot think of enough for me to want a new section. Instead I think that they belong in Snippets. True, that needs improvement (eg making it searchable). Perhaps it should have categories, etc. But I think that it is the right place for this.# Runs a system command with basic error handling. sub run_system { if ($verbose) { my ($cmd, @args) = @_; print "Running '$cmd'\n"; if (@args) { print " with arguments '@args'\n"; } } if (system(@_)) { my $cmd = shift; my $arg_msg = ""; if (@_) { $arg_msg = " with args ['@_']"; } confess("Running '$cmd'$arg_msg failed on return code ($?)\n"); } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Still unconvinced, sorry
by aquacade (Scribe) on Aug 12, 2001 at 22:42 UTC | |
by footpad (Abbot) on Aug 12, 2001 at 23:23 UTC | |
by aquacade (Scribe) on Aug 13, 2001 at 19:24 UTC | |
by $code or die (Deacon) on Aug 12, 2001 at 23:17 UTC |
In Section
Perl Monks Discussion