Thank you very much again for your help.
Actually, I was trying to store the array in the form:
my $graph = [ 1, 2, 14 , 2, 3, 18 ];
I wanted to pass $graph to another function which expects the input in that form. Would you recommend me using $graph or @graph?
Thanks again.