foreach (keys %global_variables) { $content =~ s/\$\($_\)/$global_variables{$_}/g; }
$content =~ s/\n/\n$indent /g;
$text =~ s/\n.*/ [more\.\.\.]/s;
Update: Added the missing parens around VARIABLE
| Regards... | Stefan |
| you begin bashing the string with a +42 regexp of confusion | |
In reply to Re: Call for code samples!
by stefan k
in thread Call for code samples!
by japhy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |