Tony wrote:
> 
> Seems that glob needs to be defined manually with perlcc but with the perl
> interpreter glob is already defined.
> 
> If anyone has additional information to educate me a little more on this
> 'glob' issue I'd appreciate it.
> 
> Hope this helps someone.
> 
> Tony

the reason is because the expression inside your <> operator is not a simple 
scalar value($a[0] or $a{'hi'} also doesn't qualify as a simple scalar 
value) or a file handle. whenever Perl sees that, it calls the glob() 
function internally. the glob() function is, however, only an extension to 
the File::Glob module. when you run your script from Perl, Perl knows all 
that and loads the stuff internally for you. no problem. when you use 
perlcc, it doesn't know that so you have to give it a hint of where to find 
the glob() function. the addition of 'use File::Glob' is good enought a 
hint for perlcc. for more of this:

perldoc perlop

and then check out the I/O operators section

david

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to