At 1.44 -0700 2000.04.04, Nicholas G. Thornton wrote: >I'm working on a module for my own personal use regarding Kevin Reid's >Mac::TextViewPane, basically to make it easier to use in the way I've been >doing >for many programs. Below is a code snippit and an error I'm getting. > >sub new_window { > my $window = shift; ># [...] > my $$window_pane = new Mac::TextViewPane ( Font => Monaco, Size => 9, >Text >=> $_[1] ); ># [...] >} >### ># Can't declare scalar deref in my, near "$window_pane =" >File 'Wild Colonials:My Documents:perl scripts:[ by me >]:DeOS:modules:windows.dem'; Line 67 Yes ... ? You cannot do that. You cannot use my() on a reference or a dereference, you can only use it on a specific variable. $$foo is not a variable, it is a dereference of the variable $foo. -- Chris Nandor | pudge@pobox.com | http://pudge.net/ Andover.Net | chris.nandor@andover.net | http://slashcode.com/ # ===== Want to unsubscribe from this list? # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org