You have made mistake is setting the path of the file where it will be create here it should be front slash /instead of \. See the following:
#!/usr/bin/perl open(my $in, ">", "C:/Documents and Settings/admin/Local Settings/Te +mp/texti.txt") or die "Can't open license.txt: $!"
In reply to Re^2: Failed to create a file
by changma_ha
in thread Failed to create a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |