Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: OK... I am confused and lost :( Editing FlatFile

by runrig (Abbot)
on Aug 27, 2001 at 22:41 UTC ( #108218=note: print w/replies, xml ) Need Help??

in reply to OK... I am confused and lost :( Editing FlatFile

use strict and warnings (-w). Consider using an array or a hash instead of all those variable names. E.g.:
my @fields = qw(position institution dept etc); for my $rec (@records) { chomp $rec; my %old; @old(@fields} = split /\t/, $rec; if ($old{position} != $viewposition) { print join("\t", @old{@fields}),"\n"; } else { ... } }

Replies are listed 'Best First'.
Re: Re: OK... I am confused and lost :( Editing FlatFile
by LostS (Friar) on Aug 27, 2001 at 22:50 UTC
    Thanks for the kick in the head... found the issue... :)

    Billy S.
    Slinar Hardtail - Guildless
    Datal Ephialtes - Guildless
    RallosZek.Net Admin/WebMaster
    Aerynth.Net Admin/WebMaster

    perl -e '$cat = "cat"; if ($cat =~ /\143\x61\x74/) { print "Its a cat! +\n"; } else { print "Thats a dog\n"; } print "\n";'

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://108218]
[Corion]: ambrus: AnyEvent(::HTTP) doesn't integrate well with Prima, that's my main problem
[Corion]: There is a weirdo shim because there is a POE integration for Prima, and if you use that, you can use the POE adapter of AnyEvent. What I'd want is something transport agnostic that parses HTTP or produces HTTP output, so that the communication with ...
[Corion]: ... the socket is done by my code. Ideally that module would not be based on callbacks ;)
[Corion]: Basically, something that decouples the HTTP parsing (+ determining whether to redirect, etc) from the IO
[Corion]: All clients I'm aware of don't do that but issue all IO themselves

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2016-12-07 15:48 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (130 votes). Check out past polls.