Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Simple way to skip spaces and # comments

by perlfan (Vicar)
on Jul 31, 2020 at 11:28 UTC ( [id://11120121]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $line = 'valid text blah blah # delete me and everything after poun
    +d # also this';
    $line =~ s/#.*$//;
    print qq{"$line"\n};
    
  2. or download this
    "valid text blah blah "
    

Log In?
Username:
Password:

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

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

    No recent polls found