Thus spaketh To beginners@perl.org:
> Thus spaketh Randal L. Schwartz:
> > >>>>> "Gavin" == Gavin Henry <[EMAIL PROTECTED]> writes:
> > 
> > >> perl -pe 's/^/=$.= /' test.pl
> > 
> > Gavin> That looks familiar
> [ ... ]

Sorry.

> Yes. But I found a way to confuse myself.
> 
> Why does
> 
> perl -pe '$_.="$. "' some_file
> 
> start the enumaration at line 2, while
> 
> perl -pe '$_="$. $_"' some_file
> 
> starts it at line 1 (as wanted).
> 
> Cheers
> Michael
-- 
                        Michael P. Demelbauer
                    http://www.wsr.ac.at/~michael/
    WSR (Wirtschafts- und Sozialwissenschaftliches Rechenzentrum)
                   LUGA (Linux User Group Austria)
              The early bird gets the worm. If you want
             something else for breakfast, get up later.
                       -- signature on bugtraq

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to