Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Perl lists
- Date: Fri, 09 Aug 2002 15:36:21 +0900
- From: Keith Watanabe <keith.y.watanabe@example.com>
- Subject: Re: [tlug] Perl lists
- References: <000901c23fc7$a96add70$1500a8c0@example.com> <006601c23f6c$a4f14b90$5a00a8c0@example.com>
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0+) Gecko/20020429
> > Does anyone know a fast/easy way to append a fix value to each item in > a list? > eg I have a list of domains in @example.com and I want to put *. on the > left of each one. I'm currently uses a foreach. i'd have to see your code but let me try to guess how you'd do it: @example.com = ( 'blorf.com', 'fungo.org', 'nerps.net' ); for (my $x = 0; $x < scalar @example.com; $x++) { $domains[$x] = '*.' . $domains[$x]; } that's one possible way i think.
- References:
- [tlug] kinput2+canna+freewnn
- From: hatsuhiro
- [tlug] Perl lists
- From: Brett Robson
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Perl lists
- Next by Date: Re: [tlug] Apache Server Almost There!
- Previous by thread: Re: [tlug] Perl lists
- Next by thread: Netiquette Rant (was: Re: [tlug] kinput2+canna+freewnn)
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links