Félix Horro Pita skribis 2006-06-20 11:23 (+0200):
>     if ( ($args[0]!~/\d+/) ){

Note that a regular expression can match anywhere in the string.

So the string "hello 20 world" does match \d+, because there's 20 in it.

The trick is to use anchors: /\A \d+ \z/.

>         return DENYSOFT_DISCONNECT, "Too much recipients (Max.
> ".$self->{maxrcpt}." adresses)";

Hash(reference) elements can be interpolated:
    
    "... (Max $self->{maxrcpt} addresses)"

(And note that address has 2 Ds)


Regards,

Juerd
-- 
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html 
http://convolution.nl/gajigu_juerd_n.html

Reply via email to