This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Selecting all friends who are interested in a particular hobby should be easy, right? | |
Well, it is, provided you're happy to do subselects, and realise the hobbies come back as a giant string. | |
Luckily, all that hard work can be pushed off to the FQL server... | |
--- | |
SELECT name | |
FROM user | |
WHERE uid IN ( | |
SELECT uid2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
use 5.010; | |
use strict; | |
use warnings; | |
use autodie; | |
use DateTime; | |
my $dt = DateTime->now; | |
foreach my $timezone ( qw( Australia/Sydney GMT America/Los_Angeles ) ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=head2 autodie and string eval | |
Due to the current implementation of C<autodie>, unexpected results | |
may be seen when used near or with the string version of eval. | |
I<None of these bugs exist when using block eval>. | |
Under Perl 5.8 only, C<autodie> I<does not> propagate into string C<eval> | |
statements, although it can be explicitly enabled inside a string | |
C<eval>. |
NewerOlder