In writing a Perl script I used a subroutine CHECK() and had to change it because it seems to be a reserved name -- it appears syntax-coloured blue unlike any of my other subroutines. I do not generally use the & prefix to run a subroutine, incidentally. That's probably very very bad, but doesn't seem to be at the root of my problem.
I can run this without an error:
#!/usr/local/bin/perl use strict; CHECK();
though goodness knows what it means, but
#!/usr/local/bin/perl use strict; &CHECK();
throws an error (Undefined subroutine).
Both are coloured.
Can someone tell me what I'm missing?
JD
-- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email "support@barebones.com" rather than posting to the group.
Jan 21
Bruce Van Allen Re: Perl sub curiosity
Jan 21, 2010; 17:29
Bruce Van Allen
Re: Perl sub curiosity
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!