Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: Re: All of my terms end up in @foo0

by chipmunk (Parson)
on Feb 08, 2002 at 05:14 UTC ( #144042=note: print w/replies, xml ) Need Help??


in reply to Re: Re: All of my terms end up in @foo0
in thread All of my terms end up in @foo0

Ah, just as I had guessed, @file is being read in from an external file. So, the file probably has the wrong line endings for the system. Either convert the file to have the appropriate line endings, or change your code so that it can deal with any line endings.

Here's a very simple, but probably not optimal, example of the latter:

{ local $/; my @files = split /\r\n?|\n\r?/, <FTS>; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://144042]
help
Chatterbox?
[james28909]: well i have officially wore my brains out on hash refs and array refs and hash of arrays
[james28909]: push @{$hash{$ref}}, $this, $that, $the_other;
[james28909]: for 0 .. 3 {print $hash{$ref}}$_;
[james28909]: or i guess that is a hash ref
[james28909]: hash of array ref <.<

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2017-05-01 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (544 votes). Check out past polls.