in reply to Re^4: Read all the file path having text document
in thread Read all the file path having text document
Actually, I'm surprised too. I really meant omit the prototype specification on the sub declaration:
sub S {...}
rather than:
sub S ($) {...}
In other words, don't use the prototype at all is the fix rather than using a forward declaration. If the sub isn't prototyped the forward declaration isn't required.
A forward declaration with a different prototype than the actual declaration is an error reported by Perl, but not if the forward declaration is missing the prototype and the declaration has one - bizarre.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Read all the file path having text document
by shmem (Chancellor) on Nov 30, 2008 at 01:54 UTC | |
by GrandFather (Saint) on Nov 30, 2008 at 02:12 UTC | |
by almut (Canon) on Nov 30, 2008 at 03:01 UTC | |
by shmem (Chancellor) on Nov 30, 2008 at 22:07 UTC |