in reply to Re^3: Read all the file path having text document
in thread Read all the file path having text document
No prototype, no warning.Did you mean to convey that simply omitting the prototype from the predeclaration would suppress the warning?
I was rather surprised to find that this worked! Can you point me to an explanation of why this works as it does?>perl -wMstrict -le "sub S; S('foo'); sub S ($) { print $_[0], '-totyped subroutine' }; " foo-totyped subroutine
In any event, I continue to agree it is best to avoid prototyping both in the OPed code and in general.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Read all the file path having text document
by GrandFather (Saint) on Nov 30, 2008 at 01:02 UTC | |
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 |