in reply to How is this printing?
Ok - let me try an example, it may be clearer
$a="123abc345" $a=~/123(.*?)345/; # $1 is now equal to "abc" $a=~/(123).*?(345)/; # $1 is now "123" and $2 is "345" $a=~/(xyz).*/; # $1 is still "123" because there was # no match
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How is this printing?
by muba (Priest) on Oct 16, 2004 at 14:47 UTC | |
by Sandy (Curate) on Oct 19, 2004 at 17:04 UTC | |
by muba (Priest) on Oct 19, 2004 at 20:18 UTC |