in reply to Re^3: Unnecessary use of capturing in regex?
in thread Unnecessary use of capturing in regex?
in the book learning perl, I am confused why not just "." So I ask this question.#!\usr\bin\perl -w for($_="head";s/(.)//;){ print"now head is $_.\n"; }
Janitored by Arunbear - added code tags, as per Monastery guidelines
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Unnecessary use of capturing in regex?
by gothic_mallard (Pilgrim) on Nov 03, 2004 at 14:56 UTC |