#declare a variable named line and assign value 'abcd' to it
#split the variable line ("abcd") into 1 char part
#show/print the 1st character, which is 'a'
#declare a variable named line and assign value 'x' to it
#if the 1st character for $line is equal to $x, show/print "Hello"
if ($arr eq $x)
Based on your coding, the output should be 'a' only. Unlesss....... In your world, 'a' is equal to 'x'. :D
If the OP had enabled warnings, and named the script something other than a number, then the following warning would have been helpful:
Argument "/home/david/Programming/Perl/weird.pl" isn't numeric in array element at /home/david/Programming/Perl/weird.pl line [whatever].
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...