Loading...
Flash Player 9 (or above) is needed to view slideshows. We have detected that you do not have it on your computer. To install it, go here.
-
-
Added to the group YAPC::Europe 2008 by polettix
Presentation Transcript
- Slide 1:Perl Made Beautiful
- Slide 2: LE OP Perl Made Beautiful P E Z Y L A O R F
- Slide 3: sub _load_ff3 { my ($self, $file) = @_; my $cookies; my $query = 'SELECT host, path, name, value, isSecure, expiry ' . ' FROM moz_cookies'; eval { require DBI; my $dbh = DBI->connect('dbi:SQLite:dbname=' . $file, '', '', {RaiseError => 1}); $cookies = $dbh->selectall_arrayref($query); $dbh->disconnect(); Code 1; } or eval { require 5.008_000; # for >3 arguments open, which is safer open my $fh, '-|', $SQLITE, $file, $query or die $!; $cookies = [ map { [ split /\\|/ ] } <$fh> ]; 1; } or do { carp \"neither DBI nor pipe to sqlite3



SlideShare brings the cloud to PowerPoint and your desktop...