Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: How could I simplify this redundant-column-removing code?

by kennethk (Abbot)
on Jun 17, 2015 at 16:09 UTC ( [id://1130838]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for my $i (0 .. @F-1) {
    
  2. or download this
        @F1 = @F if !@F1;
    
  3. or download this
    while (<DATA>) {
        chomp;
        my @F = split '&';
    
  4. or download this
    #!/usr/bin/env perl -w
    use v5.014;
    ...
    a=1&b=1&c=1&d=2&e=&f=3
    a=1&b=2&c=3&d=2&e=&f=4
    a=1&b=2&c=5&d=1&e=&f=5
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-25 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found