View Single Post
Old 12-20-2003, 08:47 PM   #1 (permalink)
Apodysophilia
Regular Contributor
 
Apodysophilia's Avatar
 
Join Date: Apr 2003
Location: noWhere, PA
Posts: 104
Apodysophilia is on a distinguished road
Send a message via AIM to Apodysophilia
paramerters in perl & an input problem

i just dont get it bah.
this works, i found a tut on it
Code:
#!/usr/bin/perl


sub test
{
	$temp = $_ for @_;
	print "the var is $temp";
}
	
test(34);
i dont knwo what the "$_ for @_ " does? and that only works for one argument. what if i want more?
and that doesnt work for text, how do i do it for text?

and
how do i terminate this. or/and is there a better way to get input from the keyboard?
Code:
@info = <STDIN>;

thanks for you time
Apodysophilia is offline   Reply With Quote