iOSMessageExport icon indicating copy to clipboard operation
iOSMessageExport copied to clipboard

syntax error in .pl file

Open loix opened this issue 11 years ago • 6 comments

At least that's what Terminal tells me:

Bareword found where operator expected at backup.pl line 11, near "

iOSMessageExport" (Missing operator before iOSMessageExport?) syntax error at backup.pl line 7, near "html>" Unrecognized character \xC2; marked by <-- HERE after at master <-- HERE near column 53 at backup.pl line 11. <p>Thank you for developing this script and making it available. I'd really love to export my texts so I can delete them from my phone and regain some much needed storage space.</p>

loix avatar Jan 24 '14 09:01 loix

Thanks to chelseybaker for creating and sharing this script. If I can get this to work, I'll be ecstatic! Any help is much appreciated.

I am getting the same error, different line number. Running on Mac OS 10.9.2, trying to parse backup of iOS 6.1.3 made by iTunes 11.1.5: Bareword found where operator expected at backup.pl line 13, near "

iOSMessageExport" (Missing operator before iOSMessageExport?) syntax error at backup.pl line 9, near "<" Unrecognized character \xC2; marked by <-- HERE after at master <-- HERE near column 49 at backup.pl line 13.

c2d2 avatar Mar 22 '14 19:03 c2d2

My apologies for not seeing this earlier! I suck at looking at Github emails.

In my script for backup.pl, line 13 is just "if ($ios_backup){" I see no bare word. Did you edit it at all?

chelseybadau avatar Apr 15 '14 14:04 chelseybadau

Thanks for getting back to me. I've been using Free iPhone SMS Backup - Export and Archive SMS from Apple iPhone

Free iPhone SMS Backup - Export and Archive SMS from Apple iPhone Welcome to Free iPhone SMS Backup! Welcome Apple iPhone users.
View on iphone-sms.com Preview by Yahoo
  But I'll give your script another try.

Thanks again!

On Tuesday, April 15, 2014 11:07 PM, chelseybaker [email protected] wrote:

My apologies for not seeing this earlier! I suck at looking at Github emails. In my script for backup.pl, line 13 is just "if ($ios_backup){" I see no bare word. Did you edit it at all? — Reply to this email directly or view it on GitHub.

loix avatar Apr 15 '14 15:04 loix

Don’t worry about if you found something that works for you better! :)  --  Chelsey Baker [email protected]

On April 15, 2014 at 11:33:44 AM, loix ([email protected]) wrote:

Thanks for getting back to me. I've been using Free iPhone SMS Backup - Export and Archive SMS from Apple iPhone

Free iPhone SMS Backup - Export and Archive SMS from Apple iPhone Welcome to Free iPhone SMS Backup! Welcome Apple iPhone users. View on iphone-sms.com Preview by Yahoo   But I'll give your script another try.

Thanks again!

On Tuesday, April 15, 2014 11:07 PM, chelseybaker [email protected] wrote:

My apologies for not seeing this earlier! I suck at looking at Github emails. In my script for backup.pl, line 13 is just "if ($ios_backup){" I see no bare word. Did you edit it at all? — Reply to this email directly or view it on GitHub. — Reply to this email directly or view it on GitHub.

chelseybadau avatar Apr 15 '14 15:04 chelseybadau

Thanks for looking into this, Chelsey! I haven't made any changes to the script at all, yet I still get that error when running on Mac OS 10.9.2. I don't have much experience with Perl scripting, so I'm really at a loss to debug. If I can try out anything else and give you feedback, I'd be happy to do so. Let me know.

Regards, c2d2

c2d2 avatar Apr 16 '14 15:04 c2d2

I had the same error and it turns out to be such a stupid issue. When you're on the home page of the project you can't right click backup.pl and "save link as" because it will save it as backup.pl but it's really saving the web page that the link points to. Simply click the link to see what you're really saving.

What needs to be done instead is to click the "Download ZIP" button to download the entire project with the actual perl files. I don't see a way to download a single file after clicking on it from the home page.

candhill avatar Apr 29 '14 19:04 candhill