[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] minor debugging



perhaps I misunderstand what $_ and $_[0] are then.

while(1) {
     print "\n--";
     $input = <STDIN>;
     chomp($input);
     &test_input($input);
}

sub test_input {
     if ($_ =~ /die/) {
...

Is the above code right for $_ having the same value as $input? I think I misassumed the special variable to be @_ thus calling the first value in the array. I take it (now) $_[0] would be no differant than $bill[0] or any other such?

le meas,
--a somewhat confuzzled nick

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org