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

Re: [MacPerl] subroutine parameters - elementary question



At 10:18 PM -0400 5/4/99, Noe Dinnerstein:  President, BodhiSoftWare wrote:

} #HERE'S WHERE THE PROBLEM LIES
}
} sub SearchFile(main::$newfile, $dlg->item_text(4)) {
                 ^^^^^^^^^^^^^
This is wrong.  It should be $main::newfile.

}     my $openFlag = 0;
}     my $searchString = $dlg->item_text(4);
}     open(IN,main::$newfile) or die  ("Can not open file\n"); #I GET THE
              ^^^^^^^^^^^^^
Ditto.

$, @, or % appear at the *beginning* of the variable name, even if it's
package qualified.

} FOLLOW MESSAGE AT THIS LINE
}
}
}
} Any pointing out the obvious would be welcome......
}
}
} 	Noe
}


-----
Paul J. Schinder
schinder@pobox.com

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