LA.pm: Re: Lurkers Anonymous

Samy Kamkar [CommPort5] CommPort5 at LucidX.com
Tue Jul 3 13:19:47 CDT 2001


> Arkadiy Sudarikov wrote:
> 
> I have two comments on this.
> 
> 1. So, I can do:
> 
> my $text=q( ... some big bad ass multi-line text goes in here ... );
> $text=~ m/.{0, 250}\b/s;
> my $truncated_text=$&;
> $truncated_text.='...' unless $text eq '' or length $text < 250;

Do you mean > 250?
If not, $truncated_text .= '...' unless length($text) < 250; # is all
you need
You can also do
my ($truncated_text) = $text =~ m/(.{0, 250}\b)/s;


> 2. Okay, Counter Strike tourneys? What's that?
> 
> Post Scriptum: I think it's just fine for us to discuss plans for next
> meeting. It's almost a month away, god damn it. And I don't think it
> has to be in a set date or location. Like, whatever. As long as it's
> cool.
Set dates just help people plan better for them and always be prepared
so no one's ever confused, but I agree it has to be cool ;)



More information about the Losangeles-pm mailing list