Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^4: Ternary inside a regex

by kiat (Vicar)
on Sep 23, 2005 at 13:12 UTC ( #494518=note: print w/replies, xml ) Need Help??


in reply to Re^3: Ternary inside a regex
in thread Ternary inside a regex

Nice! I wanted to do that but didn't manage to - I didn't have the parentheses.

Thanks :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://494518]
help
Chatterbox?
[shmem]: no. A reference is something like a pointer in C
[james28909]: i mean i get what you are saying though. but it is easily confused (especially by someone like me :P )
[shmem]: in the loop example I gave you, $_ is not a reference. It is just the current element of @array "in disguise".
[shmem]: i.e accessed as $array[$i] where $i would be the loop index in a C-style "for" loop: for($i=0;$i<=$# array;$i++){ ... }</c>
[james28909]: i gotcha
[Discipulus]: reference is a road sign; alias like Constantinple and Istnbul
Discipulus well istanbul was a road sign but this is another story: eis ten polin
[shmem]: Discipulus++; # and I give you an "a"
[james28909]: and you are right, i already tried to go C but ended up coming back, mainly because data types confuse me, well that and things like long long double and float point things all scare me
[james28909]: lol

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2018-05-20 15:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?