Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Remove from character to end of line

by CukiMnstr (Deacon)
on Aug 01, 2002 at 16:50 UTC ( [id://186835]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while(<>) {
        s#^([^/]+).*#$1#;
        print;
    }
    
  2. or download this
    while(<>) {
        print((split '/')[0], "\n");
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (1)
As of 2024-04-19 18:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found