in reply to Here there be cammels!
I have tried setting $.
Interestingly:
while (<DATA>) { chomp; warn "<$_>"; } warn "One"; $. = 123; warn "Two"; close DATA; warn "Three"; $. = 456; warn "Four"; __DATA__ Zero
Gives:
<Zero> at - line 1, <DATA> line 1. One at - line 2, <DATA> line 1. Two at - line 4, <DATA> line 123. Three at - line 6. Four at - line 8, <DATA> line 456.
And yet, it's a hack. Better to implement the message yourself.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Here there be camels!
by LanX (Saint) on Mar 01, 2015 at 00:04 UTC | |
by Discipulus (Canon) on Mar 01, 2015 at 08:51 UTC | |
by Anonymous Monk on Mar 01, 2015 at 13:04 UTC |