generate TSIG key with perl

2009-08-13 Thread sys adm
Hi,

do you know if there is a perl module which can generate TSIG key for Bind 
nameserver?
thanks.


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




Re: two questions

2009-08-06 Thread sys adm
I have missed a '$' in the original post.
I do hate to write s/^\s+|\s+$//g for each and each time,just got tired of it.
So I hope perl can have that a string operator, since many script languages 
have that, and it's used universally.

Thanks.

--- jwkr...@shaw.ca wrote:

From: "John W. Krahn" 
To: Perl Beginners 
Subject: Re: two questions
Date: Tue, 04 Aug 2009 23:24:56 -0700

sys adm wrote:
> 
> 1. why perl doesn't have a built-in strip() function?

Why doesn't BASIC have built-in regular expressions?  Why doesn't C have 
built-in strings?  Why doesn't $LANGUAGE have built-in $FEATURE? 
Because that is the way the language was designed.


> each time I need
> to say $var =~ s/^\s+|\s+//g to strip the blank space before and after
> the variable, specially if this is a CGI var.

That actually strips *all* whitespace from the variable:


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




two questions

2009-08-04 Thread sys adm
1. why perl doesn't have a built-in strip() function? each time I need to say 
$var =~ s/^\s+|\s+//g to strip the blank space before and after the variable, 
specially if this is a CGI var.
2. what's the standard module or method to generate a random string, for 
example the string will be used as part of url.

Thanks.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




Re: recommendations for web/database applications

2009-07-28 Thread sys adm
currently I'm using CGI,CGI::Cookie,DBI,Template::Toolkit,Linux,Apache and 
SQLite for a small data scratching project.
being very happy with them.


--- dpchr...@holgerdanske.com wrote:



Also, what about the various WWW tools -- e.g. CGI.pm, CGI::Application,
HTML::Template, Template::Toolkit, Mason, Catalyst, Gantry, etc..
 

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




sort with special order

2009-07-23 Thread sys adm
Hi,

When I got a word list, I want it to be sorted with special order.
for example, I got this array:

("dog","is","a","there");

I want the sorted result is:

("there","is","a","dog");

How to code it? Thank you.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/