Something like this should work:
if($_ =~ /.*split(.*)/){
print "Here's the end: $1\n";
}else{
print "Couldn't find the split word!\n";
}
or
my($beginning,$end) = split(/split/,$sentence);
print "Here's the end: $end\n";
-----Original Message-----
From: jdavis [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 2:36 PM
To: perl
Subject: Simple split question
Hello,
I have a sentince I would like to split on a word and keep everything
right of the "split word". I cant seem to get this to work. Could
over me some advice.
Thanks,
--
jd
[EMAIL PROTECTED]
Bad spellers of the world untie!
"I can't tell if I have worked all my life or
if I have never worked a single day of my life"
Miguel de Icaza
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]