On 10/9/06, Helliwell, Kim <[EMAIL PROTECTED]> wrote:
The following test script fails to compile, complaining that there are
not enough arguments

in the call to sub2.



#!/bin/perl



sub1("Hello, ");

sub1("world\n");

Are you sure you want sub1 prototyped twice?



sub sub2($str)

{

    print $str;

}

sub sub1($str)

{

    sub2($str)

}





The basic problem is that I'm trying to call one subroutine from inside
another. I'm sure I've had

this work before, but there's clearly something I'm doing wrong this
time.



Any clues?



Thanks,







Kim Helliwell

LSI Logic Corporation

Work: 408 433 8475

Cell: 408 832 5365

[EMAIL PROTECTED]



Please Note: My email address will change to [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>  on Oct 14. The old 'lsil.com' email
address will stop working after Jan 15, 2007. Please update your address
book and distribution lists accordingly. Thank you.







--
I'm nerdy in the extreme and whiter than sour cream

--
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