Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Generic User Avatar

perl can't read right arrow


  • Please log in to reply
1 reply to this topic

#1 glrider

glrider

  •  Avatar image
  • Members
  • 156 posts
  • OFFLINE
  •  
  • Local time:10:56 PM

Posted 16 November 2022 - 02:44 PM

I have a perl script that takes a DOS directory listing and formats it so each song is on one line with the corresponding data. I have a song that has a right arrow (Love → Building on Fire.mp3). My perl scripts reads up to the arrow and then doesn't read anymore of the input file. Is there something I can do to fix this.

 

I am running this on Windows 10 Home 21H2 19044.2251 



BC AdBot (Login to Remove)

 


#2 SamHobbs

SamHobbs

  •  Avatar image
  • Members
  • 71 posts
  • OFFLINE
  •  
  • Local time:10:56 PM

Posted 18 November 2022 - 06:17 PM

DOS is an old operating system and barely qualifies as an operating system. You should use Windows if possible. DOS does not handle Unicode and does not handle long file names and file extensions. The file you are asking about is not a DOS file name.

 

You do not give any details of what you are doing. If you can process a Windows directory listing then you might need to use Unicode, I do not know. I am not familiar with Perl. If you can use a Perl equivalent to an operating system's directory listing then that will work better. Look at Files and Directories Handling in Perl - The Perl Beginners’ Site; I do not know Perl but that looks relevant.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users