how come in my code when I run this, the print and show sorted does not display, it just leaves a blank
#!/usr/bin/perl
$end = 0;
for ( $x=0; ! $end; ++$x )
{
print "Enter number (-1 when done): ";
chomp ($val = <>);
if ($val == -1)
{
$end= 1;
}
else
{
$data[$x]=$val;
}
}
#Sorting the...