Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^5: scoping problem?

by rocroc (Initiate)
on Dec 07, 2011 at 14:15 UTC ( #942253=note: print w/ replies, xml ) Need Help??


in reply to Re^4: scoping problem?
in thread scoping problem?

Not sure what to say about being coy with the code -- what I've posted is exactly what I'm running.

As for the data, I've been cutting-and-pasting directly from the file I'm working with.

In any event, perhaps choroba is right that there are non-printable characters in the file. How would I go about figuring that out?

Slightly related idea: could something wierd about the encoding of the text file be going on?

Again, thanks to all of you for your help


Comment on Re^5: scoping problem?
Re^6: scoping problem?
by choroba (Canon) on Dec 07, 2011 at 14:45 UTC
    How would I go about figuring that out?
    On linux, you can run od, hd or hexdump on your data to see. I prefer flags -tx1c for od and -C for hexdump. On Windows, you can write a Perl script to print it out:
    while (<>) { printf q/%x /, $_ for map ord, split //; print "\n"; }

      On winows, either install od ( http://unxutils.sourceforge.net/ , http://gnuwin32.sf.net , mingw... ) or use Data::Dump, don't write a script like that (too many holes)

Re^6: scoping problem?
by AnomalousMonk (Abbot) on Dec 07, 2011 at 21:41 UTC
    coy, esp. WordNet (r) 2.0, sense 2: "showing marked and often playful or irritating evasiveness or reluctance to make a definite or committing statement".

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2015-07-07 00:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (86 votes), past polls