Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

EvanCarroll's scratchpad

by EvanCarroll (Chaplain)
on Oct 12, 2005 at 06:16 UTC ( #499392=scratchpad: print w/ replies, xml ) Need Help??

Irssi logs of importance
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' );
__PACKAGE__->has_many( 'accessor name' => 'table schema of m2m table', 'fkey on m2m table' );
  • *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 OCT 12 2005
My ban was tentative, I was tacitly welcomed backed, now lets put that behind us.

## New website of Real Media Analyzer

## List of free shells -my regexen to remove all whitespace in vim. map <F8> :%s/\v^ +\S@=\|\s+$//g<CR>:echo "Done"<CR>
Log In?

What's my password?
Create A New User
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2016-06-29 22:42 GMT
Find Nodes?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...

    Results (388 votes). Check out past polls.