pospos $ scalar
Returns the location in
scalar
where the last prints$grafitto = "fee fie foe foo"; while ($grafitto =~ m/e/g) { print pos $grafitto, "\n"; }
2
,
3
,
7
, and
11
, the offsets of each of the characters following an e".
The
pos
function may be assigned a value to
tell the next
m//g
where to start.
|
|