awk - input function

hello,

im a newbie. how can i input data from keyboard? thanks.

Ex:

function getName (NOM)
{
printf "Enter a filename: "
getline NOM < "/dev/tty"
close("/dev/tty")
return NOM
}

BEGIN {
printf ("\nREP: %s\n",getName(N)) 
} 
{print}

Thank you again klash. I thought in that after posting but really dont like getline, just for curiosity is there other way?

thx.

a slightly different approach, but still using 'getline':

  cmd="read line;echo ${line}"
  cmd | getline line
  close(cmd);