Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Using system (); with Strawberry Perl

by Marshall (Canon)
on Nov 26, 2021 at 20:04 UTC ( [id://11139151]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (<$in>)
    {
    ...
           last;  #no need to look anymore!
       }
    }
    
  2. or download this
    {   my %unique;
    
    ...
    use List::Util qw(any uniq);
    
    print $OUT sort uniq <$IN>;
    
  3. or download this
    my $prev = "";
    foreach (sort <$IN>)
    ...
       print unless $_ eq $prev;
       $prev = $_;
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found