Vladimir Alexiev <vladi...@sirma.bg> writes: > I found a simple WORKAROUND. > Kindly put this in the documentation of :colnames, > at the end of the nil value: > > Please note that such "table disassembly" does not work with var > indexing. As a simple workaround, put the #+tblname AFTER the hline > (not before the table).
Done, thanks for the suggestion > > For example: > > #+STARTUP: showeverything > #+BABEL: :tangle yes > > | colA | colB | > |------+------| > #+tblname: table > | a1 | b1 | > | a2 | b2 | > > #+begin_src perl :var a=table[*,0] :var b=table[*,1] > $a; $b; > #+end_src > > If you tangle this source with C-c C-x t, you can see > that the assignments are correct. > I think that the following would be cleaner. This is the workaround I had in mind in my previous email, sorry I should have explicitly mentioned this option. #+tblname: perl-table-w-hline | colA | colB | |------+------| | a1 | b1 | | a2 | b2 | #+headers: :var b=perl-table-w-hline[2..,1] #+headers: :var a=perl-table-w-hline[2..,0] #+begin_src perl :tangle yes $a; $b; #+end_src Best -- Eric _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode