We don't bite newbies here... much | |
PerlMonks |
Re: problem with Crypt::CBCby blindluke (Hermit) |
on Nov 10, 2014 at 12:55 UTC ( [id://1106693]=note: print w/replies, xml ) | Need Help?? |
My quick guess would be: try splitting by "\n". Perl should be smart enough to figure out that it's actually two characters. So, try this:
And in case you are wondering why this should work, here is an explanation of the details. UPDATE: Another suggestion - there is no need to run split twice, this is enough:
Now, when you modify the split regexp, you only have to do it in one place. Good luck with your project, and welcome to the Monastery. - Luke
In Section
Seekers of Perl Wisdom
|
|