how to use xml::simple with nested for loops???

2007-04-03 Thread Gauthier, Dave
Hi: I'm trying to construct something like a nested for loop structuire to read the data out of an XML file using XML::Simple. Here's the sample xml... 4.0,70.0 4.1,70.1 4.2,70.2 5.0,80.0 5.1,80.1 5.2,80.2 5.3,80.3 3.0,60.0

term::readline, need to change default prompt char props

2007-02-23 Thread Gauthier, Dave
Hi: I'm experimenting with Term::Readline as a way to emulate a CLI from within perl. One of the annoying things it does is to alter the display characteristics of the string I ask the "readline" method to use as a prompt. It always gets underlined, sometimes the color gets changed and someti

How to mimic a CLI using perl with STDIN

2007-02-15 Thread Gauthier, Dave
I would like to mimic linux command line behavior from inside a perl script. I guess the only thing I'm missing us the up/down arrow behavior (scrolll up/down the previous input line(s) stack) Is there a way to do this? Thanks -dave

split w. regex question/problem

2007-02-02 Thread Gauthier, Dave
Getting unwanted list elements when using split with regex. Here's an example $str = "abc=In"; @arr = split(/[a-zA-Z0-9]/,$str); foreach $a (@arr) {print "$a\n";} I get... <> <> <> <=> If I change "abc=In" to "abcdef=In", I get 6 unwanetd null elements (one per char

IPC problem

2007-02-02 Thread Gauthier, Dave
Hi: I'm trying to run 2 processes in parallel on suse. The approach I'm taking is to use open2 as in numerous examples I've found via google. But, unlike the examples I've found, the parallel process I'm trying to run with is the execution of another perl script, not a system command. The test