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

2Re: Improvement on script needed.

by jeffa (Bishop)
on Sep 08, 2003 at 13:56 UTC ( [id://289771]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ($value,$key) = $_ =~ /^([^\|]+)\|(.*)/;
    
  2. or download this
    my ($key,$value) = split(/\|/,$_,2);
    next if $seen{$value};
    print "$key: $value\n";
    $seen{$value}++;
    
  3. or download this
    my $index = index($_,'|');
    my $key   = substr($_,0,$index);
    my $value = substr($_,$index);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-03-29 06:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found