Public Scratchpad | Download, Select Code To D/L |
Irssi logs of importance
__PACKAGE__->has_many( 'accessor name' => 'table schema of m2m table', 'fkey on m2m table' );22:43 < EvanCarroll> one more question, how did you figure out the ver +sion number of something, I asked that question here once and someone + showed this neat trick where they supplied an extremly high version +number and the error told the real one 22:43 <@mst> perl -MModule::Name\ 999 22:44 < EvanCarroll> cool deal, thanks 22:44 <@mst> learned that one off clkao 22:44 <@mst> bloody handy. 12:13 < PerlJam> EvanCarroll: try ${$::{$package."::"}}{$sub}->() wi +th appropriate values for $package and $sub Encode::from_to( $data, 'iso-8859-1', 'UTF-8' );
- *accessor name* => This is the method you want this relationship to utilize. If you create a row in a table that has specified a has_many relationship, you can find out what it has_many of by viewing $obj->accessor_name(args)
- *table schema of m2m table* => This is the cpan:DBIx::Class that contains the schema definition of the many-to-many table.
- *fkey on m2m table* => This is the column name of the fkey on the many-to-many table. Rememeber the many-to-many table must have two belongs_to relationships defined, this should be the fkey of the many-to-many table that points back to the cpan:DBIx::Class that contains this has_many relationship.
__PACKAGE__->many_to_many( 'accessor name' => 'name of has_many accessor', 'name of belongs_to column on m2m table' );
#perl irc.freenode.net OCT 12 2005
My ban was tentative, I was tacitly welcomed backed, now lets put that behind us.
## New website of Real Media Analyzer
http://users.i.com.ua/~alexeysp/rma/rma.html
## List of free shells
http://www.ductape.net/~mitja/freeunix.shtml -my regexen to remove all whitespace in vim. map <F8> :%s/\v^ +\S@=\|\s+$//g<CR>:echo "Done"<CR>