[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
RE: GlobalSubs -- Issues with getting them to work?!
****** message to minivend-users from August Detlefsen <augustd@idiom.com> ******
Your GlobalSub starts out:
> > GlobalSub <<EndOfSub
> > sub GetUserRecord {
> > my($record) = @_;
> >
> > open(DATA, "< /home/shoes/data/$record");
I think the problem is in assigning $record - I have had problems in the past trying to assign a single variable from @_ like that. Try instead using:
my $record = shift();
...at least, that is what has worked for me. Note that assigning multiple vars ate a time from @_ still works fine...
Hope that helps,
-August
--
mailto:augustd@idiom.com
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list