LinuXelite
Programmer
Hi!
We are coders, right? I'll show you what I wanna do in a very simple language, VB.
I program Perl but I dont know how to "convert" this code.
Lets say I wanna convert into perl:
if left(string,1) = "1" then msgbox "V
in perl?!? I am wrong.. What can I write.
$_ = $string; if (s/1/[-1]/) {print "hey hey"; }
Also I wanna program something like this:
if right(left(string,2),1) then....
How would u write that with a regular expression?
Thanks in advance.
Frank
We are coders, right? I'll show you what I wanna do in a very simple language, VB.
I program Perl but I dont know how to "convert" this code.
Lets say I wanna convert into perl:
if left(string,1) = "1" then msgbox "V
in perl?!? I am wrong.. What can I write.
$_ = $string; if (s/1/[-1]/) {print "hey hey"; }
Also I wanna program something like this:
if right(left(string,2),1) then....
How would u write that with a regular expression?
Thanks in advance.
Frank