in reply to getting an auto carriage return on STDIN
If this isn't what you want you are going to have to be more clear. You should also use CODE tags for your code so you get proper indentation.print "Scan in Bar Code: "; my $bar_code = <STDIN>; chomp $bar_code; if ( $bar_code ) { print "\n"; } else { select(undef, undef, undef, .5); print "\r"; }
Cheers - L~R
|
|---|