Peña, Botp
10/19/2007 9:55:00 AM
From: Shuaib Zahda [mailto:shuaib.zahda@gmail.com]
# hopefully this helps. Sorry I am not php expert
# and ruby neither.
no problem, i'm not an expert, ever..
how about,
> arr = [10, "text", 10.78]
=> [10, "text", 10.78]
> pd=proc{|d| "#{d} is #{eval(d).inspect}"}
=> #<Proc:0xb7d2a890@(irb):24>
> pd.call("arr")
=> "arr is [10, \"text\", 10.78]"
> pd.call("arr<<999")
=> "arr<<999 is [10, \"text\", 10.78, 999]"
but the main question is: "there can be many arr arrays, which one?" I think a debugger is better suited.
kind regards -botp