Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

james (1129)

  (email not shown publicly)


Journal of james (1129)

Wednesday November 27, 2002
12:48 PM

Storable on qr//

[ #9178 ]

I've had a right old time today. It started with something pretty simple, be able to freeze and thaw regular expressions with Storable.

It didn't work easily, and I've had to go down roads I've not been down before (namely, XS). So I'm a little nervous about sending it out onto CPAN. However, if people want to be able to:

    use Storable qw( freeze thaw );
    my $struct = freeze( qr/a pattern/ );
    my $re = thaw( $struct );

all they need to do is download and install and stick:

    use Regexp::Copy;

at the top. Provided no-one uses it and finds that it goes horribly wrong then I'll release it on to CPAN in the next couple of days.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.