im trying to open a file, and in it is a number i need for a for loop, but if i try to get it from the text file, for example:
$theNum = <THEFILE>;
now, $theNum will contain the number i want, and and endline! ("3\n"
how can i extract just the number so i can use it in a for loop?
$theNum = <THEFILE>;
now, $theNum will contain the number i want, and and endline! ("3\n"
how can i extract just the number so i can use it in a for loop?