$default_str = "good food";
$string1 = $default_string;
you need to use the same variable name ;) perl -w will help catch errors like that.
Update arturo of course, is right too, dunno if your problem was the misspelling or if that just happened when you put the code on perlmonks
- Ant
In reply to Re: Pattern Substitution..
by suaveant
in thread Pattern Substitution..
by slok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |