Dr. Claus-Peter Becke wrote:
dear mumia w.,

thank you for your support. i have chosen the simplest solution you recommanded. i still have one problem. i would like to print every word in a new line.

push @woerter,/[a-zäöüß]/ig;
print    $q->li(@woerter);

it's unfortunaltely impossible to choose '.\n'. do you know another way to solve this problem?

best regards
claus-peter becke


[Re-directed to the list].

First, you'd figure out how to print a single word on a line, and then you'd do that for many lines. Make sure you read and understand "perldoc perlsyn." A for loop can iterate over the items in @woerter, and for each item you can print a 'li':

for (@woerter) {
        print $q->li($_), "\n";
}

Be sure you understand *why* the code works. Don't use it unless you understand it; otherwise, it'll give you bugs.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to