in reply to Prototyping - is it necessary?
I want $chomp to be an optional parameter with a default value of undef, but prototyping forces me to explicitly include a value for $chomp whenever I call getFileData.
The correct prototype is ($;$).
However, the code you posted doesn't even compile. Did you commit the sin of re-typing rather than copy-and-pasting?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: pennance (OT)
by MidLifeXis (Monsignor) on Sep 01, 2005 at 10:51 UTC | |
by bioMan (Beadle) on Sep 01, 2005 at 19:57 UTC | |
by jdporter (Paladin) on Sep 01, 2005 at 21:13 UTC |