Re: creating an HTML with images

2008-11-25 Thread Mr. Shawn H. Corey
On Tue, 2008-11-25 at 12:15 -0800, [EMAIL PROTECTED] wrote: > Hi, > I'm trying to write a simple script which reads some data from a file > and generates an HTML page with a graph in it describing the data from > the file. I know how to do all the processing, but I don't know which > packages to us

Re: Warning that I am receiving. but not making any sense

2008-11-25 Thread Rob Dixon
Wagner, David --- Senior Programmer Analyst --- WGO wrote: > > if ( ! $MyDataSw ) { > > It is the if statement in both cases. I changed the sprintf, but the error > comes back to the if in both cases. > > Thoughts? Then either the perl engine is messed up beyond hope, or the scalar variable

RE: Warning that I am receiving. but not making any sense

2008-11-25 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -Original Message- > From: Rob Dixon [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 25, 2008 11:46 AM > To: Perl Beginners > Cc: Wagner, David --- Senior Programmer Analyst --- WGO > Subject: Re: Warning that I am receiving. but not making any sense > > Wagner, David --- Senior Pro

creating an HTML with images

2008-11-25 Thread a . variey . of . questions
Hi, I'm trying to write a simple script which reads some data from a file and generates an HTML page with a graph in it describing the data from the file. I know how to do all the processing, but I don't know which packages to use in order to create the graphics and to generate the HTML file. I tri

Re: perl version for windows

2008-11-25 Thread Telemachus
On Tue Nov 25 2008 @ 3:27, Chas. Owens wrote: > On Tue, Nov 25, 2008 at 12:26, Rob Dixon <[EMAIL PROTECTED]> wrote: > > Chas. Owens wrote: > >> > >> I need to look up why they call apartments flats. > > > > 'Flat' came from old english 'flet', and that from old german 'flaz' and > > 'flezzi' meani

Re: Ways to get a mapping of values versus keys in a hash where there is one-to-one mapping between the keys and the values !

2008-11-25 Thread Amit Saxena
On Tue, Nov 25, 2008 at 10:59 PM, Rob Dixon <[EMAIL PROTECTED]> wrote: > Amit Saxena wrote: > > Hi all, > > > > I recently had one requirement where I needed to get the key in a hash on > > the basis of supplied value. > > > > There is one additional information that there is one to one mapping >

Re: perl version for windows

2008-11-25 Thread Chas. Owens
On Tue, Nov 25, 2008 at 12:26, Rob Dixon <[EMAIL PROTECTED]> wrote: > Chas. Owens wrote: >> >> I need to look up why they call apartments flats. > > 'Flat' came from old english 'flet', and that from old german 'flaz' and > 'flezzi' meaning 'flat', 'level' and 'floor'. > > A flat is one level or fl

Re: Warning that I am receiving. but not making any sense

2008-11-25 Thread Rob Dixon
Wagner, David --- Senior Programmer Analyst --- WGO wrote: > I get the following printed out on my terminal: > > pl517c.pl: Gen Rpt/Email St: 08:38:48 > Attempt to free unreferenced scalar: SV 0x2063c74, Perl interpreter: 0x22424c > at > C:\CurrWrka\00COMM~3\pl517c.pl line 1259. > Attempt

Warning that I am receiving. but not making any sense

2008-11-25 Thread Wagner, David --- Senior Programmer Analyst --- WGO
I get the following printed out on my terminal: pl517c.pl: Gen Rpt/Email St: 08:38:48 Attempt to free unreferenced scalar: SV 0x2063c74, Perl interpreter: 0x22424c at C:\CurrWrka\00COMM~3\pl517c.pl line 1259. Attempt to free unreferenced scalar: SV 0x206984c, Perl interpreter: 0x22424c at

Re: random

2008-11-25 Thread Mr. Shawn H. Corey
On Tue, 2008-11-25 at 12:51 -0500, Telemachus wrote: > On Tue Nov 25 2008 @ 12:45, Telemachus wrote: > > If you want to check if you something Perl-ish > > Something clearly went wrong here. I got caught between "to check if you can > do something with Perl" and "to check something Perl-ish." Wha

Re: random

2008-11-25 Thread Telemachus
On Tue Nov 25 2008 @ 12:45, Telemachus wrote: > If you want to check if you something Perl-ish Something clearly went wrong here. I got caught between "to check if you can do something with Perl" and "to check something Perl-ish." What I sent was neither. Feh. -- To unsubscribe, e-mail: [EMAIL

Re: random

2008-11-25 Thread Telemachus
On Tue Nov 25 2008 @ 9:29, Sharan Basappa wrote: > Hi, > > Would like to know if perl has native (without using special modules) > for generating random numbers? Shawn already pointed you in the right direction, but here's a good tip. If you want to check if you something Perl-ish, try 'perldoc

Re: getting error when running Net::SSH2

2008-11-25 Thread David Schmidt
I use Net::SSH::Perl http://search.cpan.org/dist/Net-SSH-Perl/lib/Net/SSH/Perl.pm to do that. On Mon, Nov 24, 2008 at 7:58 PM, monnappa appaiah <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm running kubuntu linuxI used Net::SSH2 to login to > remote machine, execute commands a

Re: Ways to get a mapping of values versus keys in a hash where there is one-to-one mapping between the keys and the values !

2008-11-25 Thread Rob Dixon
Amit Saxena wrote: > Hi all, > > I recently had one requirement where I needed to get the key in a hash on > the basis of supplied value. > > There is one additional information that there is one to one mapping between > the keys and the values. > > I was able to do that by defining a extra arra

Re: perl version for windows

2008-11-25 Thread Rob Dixon
Chas. Owens wrote: > > I need to look up why they call apartments flats. 'Flat' came from old english 'flet', and that from old german 'flaz' and 'flezzi' meaning 'flat', 'level' and 'floor'. A flat is one level or floor of a building. Now tell me why you call flats apartments :) Rob -- To un

Ways to get a mapping of values versus keys in a hash where there is one-to-one mapping between the keys and the values !

2008-11-25 Thread Amit Saxena
Hi all, I recently had one requirement where I needed to get the key in a hash on the basis of supplied value. There is one additional information that there is one to one mapping between the keys and the values. I was able to do that by defining a extra array and hash variables as shown in the

Re: random

2008-11-25 Thread Mr. Shawn H. Corey
On Tue, 2008-11-25 at 21:29 +0530, Sharan Basappa wrote: > Hi, > > Would like to know if perl has native (without using special modules) > for generating random numbers? > > Regards > See `perldoc -f rand`. -- Just my 0.0002 million dollars worth, Shawn The key to success is being too

random

2008-11-25 Thread Sharan Basappa
Hi, Would like to know if perl has native (without using special modules) for generating random numbers? Regards -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: how to speed up to read 4000 xml file?

2008-11-25 Thread Raymond Wan
Hi, cc96ai wrote: We have more than 4000 xml file and the program will read all and write into group of file , like a-z index page, (a.html, b.html... ) and by category (categoryA/topicA.html , catgoryA/TopicB.html) for all the process, it run around 5 - 8 min. any thought to speed it up?

Re:Perl Script to Call a Web Page?

2008-11-25 Thread Jeff Pang
> Message du 25/11/08 11:22 > De : "Albert" > A : beginners@perl.org > Copie à : > Objet : Perl Script to Call a Web Page? > > > I use a simple PERL script to add and remove email subscriptions to > newsletter. Would like to find someone who could possibly modify this > script so that instead of h

Re: perl version for windows

2008-11-25 Thread Dermot
2008/11/25 Stewart Anderson <[EMAIL PROTECTED]>: >> > > Flat as in no stairs > > Lol I made that up but it sounds crappy enough to be plausible > That works for me. I spent 20 mins looking for a quality explanation but couldn't find anything. Dp. -- To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: global and local confusion

2008-11-25 Thread John W. Krahn
Harry Putnam wrote: "John W. Krahn" <[EMAIL PROTECTED]> writes: Harry Putnam wrote: my ($rgx,$use,@finddir); $use = shift @_; $rgx = qr/(^|:)$use /; You are using capturing parentheses but you never use the string thus captured so you may want to use non-capturing parentheses in

how to speed up to read 4000 xml file?

2008-11-25 Thread cc96ai
We have more than 4000 xml file and the program will read all and write into group of file , like a-z index page, (a.html, b.html... ) and by category (categoryA/topicA.html , catgoryA/TopicB.html) for all the process, it run around 5 - 8 min. any thought to speed it up? -- To unsubscribe, e-ma

Perl Script to Call a Web Page?

2008-11-25 Thread Albert
I use a simple PERL script to add and remove email subscriptions to newsletter. Would like to find someone who could possibly modify this script so that instead of having error codes and confirmation messages embedded in the script, the web pages would simply be called from the script. I could the

Longest Prefix Match

2008-11-25 Thread [EMAIL PROTECTED]
Suppose I have C_IP address : 12.120.29.25 and I have list of following IP addresses : 212.120.128.0|19; 12.120.0.0|15; 12.120.16.0|20; 12.120.72.0|22; 12.120.96.0|20; 12.120.40.0|21; 12.120.0.0|21; 12.120.192.0|19; 12.120.16.0|22; 12.120.36.0|22; 12.120.80.0|20; 194.212.120.0|21; 2

Re: which module is suitable for logging into cisco devices

2008-11-25 Thread Ron Bergin
On Nov 23, 1:17 pm, [EMAIL PROTECTED] (Monnappa Appaiah) wrote: > i forgot to mention that, i'l be running the script from the windows machine > ..so pls let me know the module which can login to cisco devices > using ssh, execute certain commands and give me the output. > > Thanks, > Monna

RE: perl version for windows

2008-11-25 Thread Stewart Anderson
> -Original Message- > From: Chas. Owens [mailto:[EMAIL PROTECTED] > Sent: 24 November 2008 20:18 > To: Jenda Krynicky > Cc: Perl Beginners > Subject: Re: perl version for windows > > On Mon, Nov 24, 2008 at 10:34, Jenda Krynicky <[EMAIL PROTECTED]> wrote: > > From: "Chas. Owens" <[EMAIL