1

Not able to get value in 3rd variable

view story
linux-howto

http://www.unix.com – Perl Legends, I am trying to debug below perl script. Till "h1" and "h2" the value in variable is initialized. but as soon as it execute the command for 3rd variable "h3" it terminates. Code: $h1=`/usr/bin/head -1 /tmp/a/$ARGV[3]`; print TEST "after h1\n"; print TEST "$h1\n"; $h2=`/usr/bin/head -1 /tmp/b/$ARGV[3]`; print TEST "after h2\n"; print TEST "$h2\n"; $h3=`/usr/bin/head -1 /tmp/c/$ARGV[3]`; print TEST "after h3\n"; print TEST "$h3\n"; @head = ( $h1, $h2, $h3 ); print TEST "after (HowTos)