Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Pattern Substitution..

by JP Sama (Hermit)
on May 30, 2001 at 21:14 UTC ( #84312=note: print w/replies, xml ) Need Help??


in reply to Pattern Substitution..

I think you should do something like that:
$string = qq{ what I don't understand is why does pattern substitution $string1 and $string2 does not gave me the end results of "geed feed" ? Doesn't 1 and 2 look for "o".. and for 1, it has a "*", which means "match 0 or more", right? and for 2, it has a "+", which means match 1 or more times, right? thanks in advanced }; $string =~ s/o/e/g; print $string;
That should work... the last "g" is for GLOBAL.

Regards!
#!/jpsama/bin/perl -w
$tks = `mount`;
$jpsama = $! if $!;
print $jpsama;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2022-08-18 02:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?