I am trying to process the input of a file character per character, but there are some 1 of which I do not know where they come from. Consider this example:
input file
First row; Second row; Third row;
File test.pl
#!/usr/bin/perl open FILE, "<input"; my @characters = split //, join //, <FILE>; for( @characters ) { print $_; } close FILE;
I would expect this script to print only the input content (although in a rather complicated way - it's just an example). However, when I run ./test.pl , I get this output:
First row; 1Second row; 1 1Third row;
Now my question is: where do these characters come from 1 ?
source share