Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

EvanCarroll's scratchpad

by EvanCarroll (Chaplain)
on Oct 12, 2005 at 06:16 UTC ( [id://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 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>
Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-03-28 16:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found