Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
print "Content-type: text/html\n\n"; $ignore = 3; $page_data = "the cow jump over the moon"; @text = split(/\s/, $page_data); foreach $line (@text) { $len = length($line); if($len < $ignore) { delete(@text[$line]); } else { print "$line "; $new_page_data = sprintf("%-5s", $line); } } print "<p>$new_page_data";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Adding to variable with sprintf()
by eXile (Priest) on Apr 28, 2005 at 01:06 UTC | |
by trammell (Priest) on Apr 28, 2005 at 04:01 UTC | |
|
Re: Adding to variable with sprintf()
by fireartist (Chaplain) on Apr 28, 2005 at 09:17 UTC | |
|
Re: Adding to variable with sprintf()
by gube (Parson) on Apr 28, 2005 at 03:45 UTC | |
|
Re: Adding to variable with sprintf()
by eibwen (Friar) on Apr 28, 2005 at 05:08 UTC | |
|
Re: Adding to variable with sprintf()
by Anonymous Monk on Apr 28, 2005 at 01:10 UTC |