- or download this
#!/tool/bin/perl -w
use strict;
...
printf("element $i of array = ");
printf("%s\n", $array[$i]);
}
- or download this
> ./stderr_test.pl
Use of uninitialized value in printf at ./stderr_test.pl line 11.
...
Use of uninitialized value in printf at ./stderr_test.pl line 11.
element 4 of array =
...
- or download this
> ./stderr_test.pl > & log
- or download this
Use of uninitialized value in printf at ./stderr_test.pl line 13.
Use of uninitialized value in printf at ./stderr_test.pl line 13.
...
element 1 of array =
element 2 of array =
...
- or download this
open(STDERR,'>&', STDOUT);