[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] problem with "my"



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

the &new_window() routine takes a scalar argument which is a referance used for
all the making a new window stuff. But for this one line I can't figure what
precicely's the problem.

le meas,
--nick

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org