CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
Help,unpack problem

 



smithricher
New User

May 18, 2008, 7:44 AM

Post #1 of 4 (1401 views)
Help,unpack problem Can't Post

Hi,all
I download plucene1.25 and try to do something,I had a lucene java inde file in my d:\plucene\index,And these index files works well in java and php lucene.But when I use plucene there have an error :'/' must follow a numeric type in unpack at d:\plucene\index/SegmentInfos.pm line 57.I found this line is:
my ($count, @unpack) = unpack "NN/(w/aN)", read_file("$directory/segments");
Why can't I unpack?I debug it,I found activeperl 5.10 can't use "NN/(w/aN)",Any idea?Thanks!

Best Regards,
Smith


KevinR
Veteran


May 18, 2008, 8:20 AM

Post #2 of 4 (1400 views)
Re: [smithricher] Help,unpack problem [In reply to] Can't Post

read the pack() function documentation which describes the / option, or ask on www.perlmonks.com
-------------------------------------------------


smithricher
New User

May 18, 2008, 10:18 PM

Post #3 of 4 (1395 views)
Re: [KevinR] Help,unpack problem [In reply to] Can't Post


In Reply To
read the pack() function documentation which describes the / option, or ask on www.perlmonks.com


Hello,
I had read all functions,and I had google,and I had......
If anybody know it,please telll me the answer,Thanks a lot!


KevinR
Veteran


May 19, 2008, 9:34 AM

Post #4 of 4 (1375 views)
Re: [smithricher] Help,unpack problem [In reply to] Can't Post

I don't do much with pack or unpack but I don't think NN is a valid argument to put before the /, have you tried N/ instead of NN/?
-------------------------------------------------

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives