Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Get unique fields from file

by choroba (Archbishop)
on Jan 06, 2022 at 12:00 UTC ( #11140218=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @fields = split "|", 'abc|def';
    print join ', ', @fields;  # a, b, c, |, d, e, f
    
  2. or download this
    my @fields = split /\|/, 'abc|def';
    print join ', ', @fields;  # abc, def
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2022-09-25 17:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (116 votes). Check out past polls.

    Notices?