Re: redirecting to a file in perl

2009-11-13 Thread Subhashini
This is the code that i have written *#!/usr/bin/perl print "ENTER THE WORD IN ENGLISH"; print "\n"; $english=; print "word ="; print "$english"; print "\n"; print "*** FRENCH -TO - ENGLISH - TRANSLATION"; s

Re: set fonts for GD

2009-11-13 Thread Robert Wohlfarth
On Thu, Nov 12, 2009 at 9:28 PM, Orchid Fairy (兰花仙子) < practicalp...@gmail.com> wrote: > I'm using GD::Graph::bars. > > my $graph = GD::Graph::bars->new(150,100); > > But I can't call the methods below to set the font and size. > > $graph->set_x_axis_font('arial', 15) or die $graph->error; > $gra

Re: Need a Perl Regex Help

2009-11-13 Thread Shawn H Corey
Parag Kalra wrote: > I have a following a LDIF file to process through Perl - > > Any pointers? http://search.cpan.org/search?query=LDIF&mode=all -- Just my 0.0002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. I like Per

Re: Need a Perl Regex Help

2009-11-13 Thread 7
On Fri, Nov 13, 2009 at 5:07 AM, Parag Kalra wrote: > Hey All, > > I have a following a LDIF file to process through Perl - > > ### > dn: ou=71404558, ou=Company, ou=Personal, o=paragkalra.com > dn: ou=People, ou=71404558, ou=Company, ou

Re: Need a Perl Regex Help

2009-11-13 Thread 7
On Fri, Nov 13, 2009 at 5:07 AM, Parag Kalra wrote: > Hey All, > > I have a following a LDIF file to process through Perl - > > ### > dn: ou=71404558, ou=Company, ou=Personal, o=paragkalra.com > dn: ou=People, ou=71404558, ou=Company, ou

Re: redirecting to a file in perl

2009-11-13 Thread Dermot
2009/11/13 Subhashini : > > This is the code that i have written > > > #!/usr/bin/perl > print "ENTER THE WORD IN ENGLISH"; > print "\n"; > $english=; > print "word ="; > print "$english"; > print "\n"; > print "***   FRENCH -TO - ENGLISH - > TRANSLATION    *

Re: redirecting to a file in perl

2009-11-13 Thread John W. Krahn
Dermot wrote: 2009/11/13 Subhashini : I am doing a coversion on french to english words.I have installed the dictionary and i could use it on my command prompt using the following command. dict -d fd-fra-eng bonjour This is a french to english coversion dict -d fd-eng-fra potatoThis is

Looking for advise on storring a complex array

2009-11-13 Thread Rob Coops
Dear list, I have a question to anyone who has experience with the following situation. I have a very complex array build from hashes containing arrays that contain hashes etc. I would like to store the whole thing on a disk, both to save on memory usage and to make it easier to separate this stru

Need a Perl Regex Help

2009-11-13 Thread Parag Kalra
Hey All, I have a following a LDIF file to process through Perl - ### dn: ou=71404558, ou=Company, ou=Personal, o=paragkalra.com dn: ou=People, ou=71404558, ou=Company, ou=Personal, o=paragkalra.com dn: ou=Groups, ou=71404558, ou=Company

Re: redirecting to a file in perl

2009-11-13 Thread Philip Potter
2009/11/13 Dermot : > 2009/11/13 Subhashini : >> i did try it but didn't work.. > > Did try what? Can you please show us what you've tried. Post the > updated version. And can you please reply to the mailing list. There > will be others how might find the answer to their problem by searching > the

Re: redirecting to a file in perl

2009-11-13 Thread Dermot
2009/11/13 Subhashini : > i did try it but didn't work.. Did try what? Can you please show us what you've tried. Post the updated version. And can you please reply to the mailing list. There will be others how might find the answer to their problem by searching the archives and seeing your mail. D

Re: redirecting to a file in perl

2009-11-13 Thread Dermot
2009/11/13 Subhashini : > hello dermot, Hello You should direct you replies to the mailing list. There are far better programmers out there then me. > I am doing a coversion on french to english words.I have installed the > dictionary and i could use it on my command prompt using the following

Re: redirecting to a file in perl

2009-11-13 Thread Dermot
2009/11/13 Subhashini : > could you help me resolve this problem I just did. Have a look at those docs and examples. They are pretty clear. They show you exactly how to redirect to a file or STDERR. [Quote] 1. system("prog args 1>tmpfile 2>&1"); 2. system("prog args 2>&1 1>tmpfile"); [/Quo

Re: push coomand on hash variables

2009-11-13 Thread Erez Schatz
2009/11/13 Anant Gupta : > ohhh ok. > Thanks for the help > > But there is an XML example using XML::Twig in which > the author has defined the hash as > my $hash={   'abc'=>'def'. >                     'ghi'=>'jkl', >                     'mnp'=>'pqr' >                  } > > I thought it is a refe

Re: redirecting to a file in perl

2009-11-13 Thread Dermot
2009/11/13 Subhashini : > i am trying to execute unix commands using perl.I am doing this using *System > command.* > Could i know how i could r*edirect the output of that command onto a log > file either by using a perl script or may be using command line arguments.* > Please do help me. See perl

redirecting to a file in perl

2009-11-13 Thread Subhashini
i am trying to execute unix commands using perl.I am doing this using *System command.* Could i know how i could r*edirect the output of that command onto a log file either by using a perl script or may be using command line arguments.* Please do help me. Regards Subhashini B

Re: push coomand on hash variables

2009-11-13 Thread Anant Gupta
ohhh ok. Thanks for the help But there is an XML example using XML::Twig in which the author has defined the hash as my $hash={ 'abc'=>'def'. 'ghi'=>'jkl', 'mnp'=>'pqr' } I thought it is a reference to a hash. Is it so? Can we directl