Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^2: what is the purpose of Tie::File

by Lotus1 (Curate)
on Nov 11, 2012 at 23:14 UTC ( #1003353=note: print w/replies, xml ) Need Help??

in reply to Re: what is the purpose of Tie::File
in thread what is the purpose of Tie::File

Thanks for the links. Those make it pretty clear how it is useful. Although Perl isn't a text editor I seem to be too often.

On one of the slides in the second link I found this interesting regex. s/^/>> /; Another obvious thing I suppose that I didn't know or realize before: that you can substitute something for nothing and therefore insert something at a boundary.

Replies are listed 'Best First'.
Re^3: what is the purpose of Tie::File
by ysth (Canon) on Nov 13, 2012 at 22:30 UTC
    Yes, or you can substitute something for what may be nothing, as in s/\n*\z/\n/.
    A math joke: r = | |csc(θ)|+|sec(θ)|-||csc(θ)|-|sec(θ)|| |

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003353]
[LanX]: hm just read an article on claiming that RPerl is 250 times faster. ... it's that even possible?
[marto]: under certain circumstances perhaps
[RonW]: as I understand it, RPerl "compiles" a subset of Perl to C, so I would expect the final executable to run a lot faster

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2017-05-22 20:13 GMT
Find Nodes?
    Voting Booth?