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 ( #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
Node Status?
node history
Node Type: note [id://11120121]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2020-10-23 00:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (234 votes). Check out past polls.

    Notices?