Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: (Zigster) string parsing

by zigster (Hermit)
on Apr 10, 2001 at 19:51 UTC ( [id://71391]=note: print w/replies, xml ) Need Help??


in reply to string parsing

Having just tested your code I get the following op, it looks like there may be something odd occuring. This is on a sparc with perl -v = 5.6.0 <html><head><title>My page</title></head><body>
5/5/2000
24St. Louis Cardinals
14995Fernando Vina2B4000000.317.397.425
25602Edgar RenteriaSS4010101.260.321.470
35151Jim EdmondsCF3121510.409.538.864
43866Mark McGwire1B3111410.323.494.903
54547Ray LankfordLF4000003.193.297.420
65046Craig Paquette3B3010211.264.325.486
76117J.D. DrewRF4010101.327.462.596
85205Mike MathenyC3000000.289.375.421
84506Thomas HowardPH1010100.280.357.760
85897Eli MarreroPR0000000.250.343.643
94379Andy BenesP2000000.167.167.167
93625Eric DavisPH1000001.281.388.491
94625Heathcliff SlocumbP0000000.000.000.000
94979Mike MohlerP00000001.0001.0001.000
95880Larry SuttonPH1000000.000.000.000
</body></html>
--

Zigster

Replies are listed 'Best First'.
Re: Re: (Zigster) string parsing
by ok (Beadle) on Apr 10, 2001 at 20:37 UTC
    Same results as Zigster. (5.00503, PIII RH 6.2).

    So here's a suggestion with no justification, other than personal experience. Try substituting the single quotes in your split call with slashes (/). For some reason, I seem to remember encountering some unexplainable (or "unexplained to me") weirdness when tooling with the delimiters.

    Wish I knew why...
Re: Re: (Zigster) string parsing
by Anonymous Monk on Apr 10, 2001 at 20:31 UTC
    Zigster, What elements in the code did you change to make it work? Also, what something strange could be occurring? Ideas? Thanks.
      That was what I was meaning, I changed nothing it worked as written. As to strange things. What platform are you on. Does the file have EOF and EOL markers in it?? What version of perl do you have .. Have you tried using perldb?
      --

      Zigster

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://71391]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2024-04-19 01:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found