perl plot using

2003-11-22 Thread but however
HI, I use the command plot in Perl to draw a graph: plot "data.txt" using (\$1/3600):(\$2) with lines, "data2.txt" using (\$1/3600):0 with points lt 3 I am not vey clear with the variables $1 and $2. I did not define them in my file, what are they? "with points lt 3" how can find more informati

perl undef

2003-11-22 Thread but however
Hi, there is a clause in perl program which assigns two variables with values from a file. my ($t, undef, $i)=/t: ((\d|\.)+)\s.*?i=((\d|\.)+)/; What does "undef" mean in the above clause? Which value will be assigned to $t and $i? in the place \d? or some value? Thanks, Wenpeng

sh: bad number

2003-11-21 Thread but however
Hi, I compiled a simple program with perl. But I ran into some problems. sh: campusUnderAttack.out: bad number I try to execute a program and input the result to antother file "campusunderAttack.out" like this: #!/usr/bin/perl # # Run campus scenario and plot result # #run 'campus network under