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

Re: Removing data from a string with Regex

by s0ttle (Scribe)
on Nov 15, 2001 at 02:52 UTC ( [id://125452]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open FILE, $filename || die $!;
    
  2. or download this
    open FILE, $filename or die $!;
    
  3. or download this
    open(FILE,$filename) || die $!;
    
  4. or download this
    die "Could not open $filename: $!\n";
    
  5. or download this
    $str ='abcd';
    $str =~s/a//g; # \g unnecessary
    ##
    $str = 'abacad';
    $str =~s/a//g; # more appropriate
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-23 13:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found