in reply to Re^2: My very confusing questions
in thread My very confusing questions
From "perldoc -f shift":
Shifts the first value of the array off and returns it, shortening the array by 1 and moving everything down. If there are no elements in the array, returns the undefined value. If ARRAY is omitted, shifts the @_ array ..
Don't use <STDIN> instead of shift(). You CAN use
If you want the input from the keyboard.chomp(my $value = <STDIN>); # Instead of hard coding "5"
Profanity is the one language all programmers know best.
|
|---|