John W. Krahn wrote:
Following is the subroutine for moving the file

sub copyFile($$) {

Your subroutine _moves_ files, it does not _copy_ files, so why is it named
'copyFile'?  You really, really shouldn't use prototypes.  If you need to
verify the number of arguments you could do something like:

sub moveFile {
    unless ( @_ == 2 ) {
        warn 'Sub moveFile expected 2 arguments but was called with ' . @_ . "
arguments.\n";
        return;
        }
First of all, sorry for barging into your conversation. Why Sonika shouldn't use prototypes? Actualy I don't use prototypes too but I don't realy know what's wrong with them.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to