<?xml version="1.0" encoding="windows-1252"?>
<node id="499392" title="EvanCarroll's scratchpad" created="2005-10-12 02:16:44" updated="2005-10-11 22:16:44">
<type id="182711">
scratchpad</type>
<author id="474782">
EvanCarroll</author>
<data>
<field name="doctext">
Irssi logs of importance&lt;br/&gt;
&lt;code&gt;
22:43 &lt; EvanCarroll&gt; one more question, how did you figure out the version 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 &lt;@mst&gt; perl -MModule::Name\ 999
22:44 &lt; EvanCarroll&gt; cool deal, thanks
22:44 &lt;@mst&gt; learned that one off clkao
22:44 &lt;@mst&gt; bloody handy.

12:13 &lt; PerlJam&gt; EvanCarroll: try  ${$::{$package."::"}}{$sub}-&gt;()  with appropriate values for $package and $sub


Encode::from_to( $data, 'iso-8859-1', 'UTF-8' );

&lt;/code&gt;

&lt;code&gt;__PACKAGE__-&gt;has_many( 'accessor name' =&gt; 'table schema of m2m table', 'fkey on m2m table' );&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;
*accessor name* =&gt; This is the method you want this relationship to utilize. If you create a row in a table that has specified a &lt;em&gt;has_many&lt;/em&gt; relationship, you can find out what it &lt;i&gt;has_many&lt;/i&gt; of by viewing $obj-&gt;accessor_name(args)
&lt;/li&gt;

&lt;li&gt;
*table schema of m2m table* =&gt; This is the [cpan:DBIx::Class] that contains the schema definition of the many-to-many table.
&lt;/li&gt;

&lt;li&gt;
*fkey on m2m table* =&gt; This is the &lt;strong&gt;column name&lt;/strong&gt; of the fkey on the many-to-many table. Rememeber the many-to-many table &lt;strong&gt;must have two&lt;/strong&gt; 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 &lt;em&gt;has_many&lt;/em&gt; relationship.
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;__PACKAGE__-&gt;many_to_many( 'accessor name' =&gt; 'name of has_many accessor', 'name of belongs_to column on m2m table' );&lt;/p&gt;

&lt;br /&gt;&lt;br /&gt;


#perl irc.freenode.net OCT 12 2005&lt;Br&gt;
My ban was tentative, I was tacitly welcomed backed, now lets put that behind us.

&lt;br /&gt;&lt;br /&gt;## New website of Real Media Analyzer&lt;br /&gt;
http://users.i.com.ua/~alexeysp/rma/rma.html

&lt;br /&gt;&lt;br /&gt;## List of free shells&lt;br /&gt;
http://www.ductape.net/~mitja/freeunix.shtml


-my regexen to remove all whitespace in vim.
map &lt;F8&gt; :%s/\v^ +\S@=\|\s+$//g&lt;CR&gt;:echo "Done"&lt;CR&gt;</field>
</data>
</node>
