Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Removing multiple trailing comment lines from a string

by tybalt89 (Monsignor)
on Dec 23, 2016 at 21:59 UTC ( [id://1178447]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    
    my $section2 = get_section( $inifile_contents, 'AnotherSection' );
    print "This is the contents of AnotherSection -------\n$section2\n";
    
  2. or download this
    This is the contents of MySection -------
    ; This is a comment line for MySection
    ...
    This is the contents of AnotherSection -------
    ; another comment
    asfld=69
    

Log In?
Username:
Password:

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

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

    No recent polls found