A simple perl script

2005-08-12 Thread Stephen Liu
Hi folks, I'm prepared to write a simple perl scripts as follow There are 25 commands executed in following sequence; export LFS=/mnt/lfs mount /dev/hda6 /mnt/lfs mkdir -p $LFS echo $LFS /mnt/lfs (output) /usr/sbin/chroot "$LFS" /tools/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' PATH=/b

Re: Perl module question

2004-12-05 Thread Stephen Liu
Hi, Tks for your advice. --- PerlDiscuss - Perl Newsgroups and mailing lists <[EMAIL PROTECTED]> wrote: - snip - > PATH. What you need to do now is investigate those > tests to see why they didn't pass. Follows are the errors found on running sudo perl -MCPAN -e 'install Tk' - snip - t/di

Re: Perl module question

2004-12-04 Thread Stephen Liu
trict; use Tk; (line 4) my $main = new MainWindow; $main->Label(-text => 'Hello World!' )->pack; $main->Button(-text => 'Quit', -command => sub{exit} )->pack; MainLoop Any advice. TIA B.R. Stephen --- Chris Devers <[EMAIL PROTECTED]

Re: Perl module question

2004-12-04 Thread Stephen Liu
Hi Chris, Tks for your advice. > > # perl -MCPAN -e 'install Tk.pm' > > The .pm suffix isn't necessary in this situation: > > $ sudo perl -MCPAN -e 'install Tk' $ sudo perl -MCPAN -e 'install Tk' . .. 6# Test 66 got: '589x341+0+32' (t/zzScrolled.t at line 104 fail #2)

Perl module question

2004-12-04 Thread Stephen Liu
stall /Tkpm/' No printout. Please advise how to proceed. TIA B.R. Stephen Liu -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: How to install "Mimi::Lite"

2004-11-21 Thread Stephen Liu
Hi Michael, Tks for your advice. Problem solve. As advised by Michael David the correct name should read; MIME:Lite It is case sensitive. B.R. Stephen --- Michael Glaesemann <[EMAIL PROTECTED]> wrote: > > On Nov 22, 2004, at 3:43 PM, Stephen Liu wrote: >

Re: How to install "Mimi::Lite"

2004-11-21 Thread Stephen Liu
Hi Michael, --- Michael Glaesemann <[EMAIL PROTECTED]> wrote: > > # perldoc Mime::Lite > > No documentation found for "Mime::Lite". > > I think the module name might be case-sensitive. Tried follows without result; # perldoc mime:lite No documentation found for "mime:lite". # perldoc MIME:LIT

How to install "Mimi::Lite"

2004-11-21 Thread Stephen Liu
i /Mime::Lite/' syntax error at -e line 1, at EOF Execution of -e aborted due to compilation errors. TIA B.R. Stephen Liu -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: Date calculations and daylight saving

2004-11-21 Thread Stephen Liu
rse' # perl MCPAN -e 'date::parse' Can't open perl script "MCPAN": No such file or directory # perl MCPAN -e 'Date::Parse' Can't open perl script "MCPAN": No such file or directory # perl -MCPAN -e 'Date::Parse' Thanks B.R. Stephen Li

Re: Printing features

2004-11-19 Thread Stephen Liu
Nov 20 12:17 . drwxr-xr-x 5 root root 4096 Nov 20 12:21 .. drwxr-xr-x 3 root root 4096 Nov 19 15:09 authors -rw-r--r-- 1 root root 145453 Nov 20 12:17 MIRRORED.BY drwxr-xr-x 2 root root 4096 Nov 19 15:09 modules If I made anything wrong, please advise. TIA B.R. Stephen --

Re: Printing features

2004-11-19 Thread Stephen Liu
Hi Bill, > Here [/root/.cpan] -- you should have just hit > enter. > > Try deleting the following directories: > /home/satimis/yes 'yes' directory not found. > /root/.cpan/yes the directory 'yes' is not empty. # ls -al /root/.cpan/yes/ total 5060 drwxr-xr-x 5 root root4096 Nov 20 00:52

Re: Printing features

2004-11-19 Thread Stephen Liu
Hi Chasecreek, <[EMAIL PROTECTED]> wrote: > You might also want to explore: > > perl -MCPAN -h Yes, the perl switches. Tks B.R. Stephen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Printing features

2004-11-19 Thread Stephen Liu
Hi Chasecreek, Tks for your advice. - snip - > Try this > > perl -MCPAN -e shell > > Then, at the CPAN prompt ( cpan> ) > > type: > > o conf init > > Answer all the qeustions; > > After you are done, again at t.CPAN prompt type > > install Bundle::CPAN Ran above commands. I don't known

Re: Printing features

2004-11-18 Thread Stephen Liu
(notice the leading > hyphen infront of the > MCPAN) > > perl -MCPAN -e 'install Term::Screen"' > perl -MCPAN -e 'install Term::Screen::Wizard"' > perl -MCPAN -e 'install Term::ScreenColor"' > > may make a difference if you c

Re: Printing features

2004-11-18 Thread Stephen Liu
Hi Chasecreek, Tks for your advice. > Have you also researched: > > Term::Screen > Term::Screen::Wizard > Term::ScreenColor FC2 === $ perldoc Term::Screen No documentation found for "Term::Screen". $ perldoc Term::Screen::Wizard No documentation found for "Term::Screen::Wizard". $ perldoc Term

Re: Searching tecknical documentation

2004-11-16 Thread Stephen Liu
IIRC, Mozilla is not controlled with "Control Center" However I could not discover how to make change on "Preference" linking pdf to them. Please advise. TIA B.R. Stephen --- "Adam K. Wuellner" <[EMAIL PROTECTED]> wrote: > > On Nov 16, 2004, at 6:

Re: Searching tecknical documentation

2004-11-16 Thread Stephen Liu
Hi Adam, --- "Adam K. Wuellner" <[EMAIL PROTECTED]> wrote: > Beginning Perl: > has > all > the chapters in PDF format. And it's legal. I can't browser the links to each chapter, only a blank page resulted. I'm running FedoraCore2. Please adv

Searching tecknical documentation

2004-11-15 Thread Stephen Liu
Hi folks, Please advise where can I find similar free documentation on Internet, like; programming perl (O'reilly) Learning Perl (Llama) Programming Perl (Camel) Perl Cookbook (Ram) Google search brought me tons of links which a beginner finds it hard to sort out TIA B.R. Stephen Liu -

Re: Printing features

2004-11-14 Thread Stephen Liu
Hi WC -Sx- Jones, Further to my last posting I found out the cause. Each time after changing the colour on the script, I must start a new terminal to run $ perl colour.pl If on the same terminal "ON_YELLOW" and "UNDERLINE" will appear on following line. But I have no glue. B.R. Stephen -- To

Re: Printing features

2004-11-14 Thread Stephen Liu
Hi WC -Sx- Jones, Tks for your advice. --- Chasecreek Systemhouse <[EMAIL PROTECTED]> wrote: > Put RESET on the line you want set as normal. > > Like this: > > print RED "This line is RED"; > print RESET, "This line is not.\n"; It works for me here. Furthermore ... print BOLD RED ON_YELLOW

Re: Printing features

2004-11-14 Thread Stephen Liu
Hi folks, After having installed "Color::Output" module, colour can be printed $ cat colour.pl #!/usr/bin/perl -w use strict; use warnings; use Term::ANSIColor qw(:constants); print BOLD BLUE "Remark:\n", RESET; print "OLINENO=Old Line No. NLINENO=New Line No.\n"; print "OWORDNO=Old Word No. NWO

Re: Printing output to file

2004-11-12 Thread Stephen Liu
Hi Renqilong, Tks for your advice. --- Renqilong <[EMAIL PROTECTED]> wrote: > > Instead of using following command printing output > to > > a file; > > > > $ perl AAA.pl > /pathto/name_of_file > > > > is it possible adding "print file function" to the > > script > > > > 1) If YES > > Please

Printing features

2004-11-12 Thread Stephen Liu
Hi folks, Please advise how to add 'bold', 'italic', 'colour', etc. such features to the printout. Can HTML syntax work on perl? I tried seeming not applicable. TIA B.R. Stephen Liu -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Printing output to file

2004-11-12 Thread Stephen Liu
ate +%Y.%m.%d.%R); File="/tmp/satimis/comparison_${user}_${now}.txt"; so that the printout file will carry name of creator, date and time, etc. If possible please shed me some light to re-edit the script. TIA B.R. Stephen Liu -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: Which package generates "Algorithm/Diff.pm"

2004-11-12 Thread Stephen Liu
Hi Chris, Tks for your advice. Chris Devers <[EMAIL PROTECTED]> wrote: > To look up a module, try: > > cpan> i /PATTERN/ > > for example, > > cpan> i /lgorithm/ > > (I forget if the pattern is case sensitive here, so > I'm leaving off the > initial 'a' from 'algorithm' to be on the sa

Re: Which package generates "Algorithm/Diff.pm"

2004-11-12 Thread Stephen Liu
Hi Chris, Tks for your advice. > All changes to the /etc/sudoers file should be made > with the `visudo` > command. `visudo` will edit the file (using whatever > editor you have > specified with $EDITOR or $VISUAL), make sure things > are consistent, > etc. It's a good idea not to edit it dire

Re: Which package generates "Algorithm/Diff.pm"

2004-11-11 Thread Stephen Liu
Hi Chris, > #perl -MCPAN -e 'install Algorithm::Diff' What will be the option '-MCPAN' for, to connect MCPAN FTP site? > You can test that it's installed by running a > command like > > $ perl -MAlgorithm::Diff -e '1' I ran it, no complaint popup (no printout). I suppose '-MAlgorithm' is

Re: Which package generates "Algorithm/Diff.pm"

2004-11-11 Thread Stephen Liu
Hi Rene, --- Rene Borchers <[EMAIL PROTECTED]> wrote: > After installation, the module is ready to use. Try > running your program. It worked now. Tks. > For the sudo command you have to modify the file > /etc/sudoers, in this > file stands which user is allowed to execute which > command wit

Re: Which package generates "Algorithm/Diff.pm"

2004-11-11 Thread Stephen Liu
Hi Chris, Tks for your advice. --- Chris Devers <[EMAIL PROTECTED]> wrote: > All you have to do is install it. > > sudo perl -MCPAN -e 'install Algorithm::Diff' There was something strange happend here in runnning $sudo perl -MCPAN -e 'install Algorithm::Diff' Password: Sorry, try again.

Re: Which package generates "Algorithm/Diff.pm"

2004-11-11 Thread Stephen Liu
> > On Thu, 2004-11-11 at 12:17, Stephen Liu wrote: > > Hi folks, > > > > FedoraCore2 > > > > Kindly advise which package I have to install to > > generate "Algorithm/Diff.pm" > > > > I ran following script > > $ perl c

Which package generates "Algorithm/Diff.pm"

2004-11-11 Thread Stephen Liu
b/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at compare_s3_fifo.pl line 5. BEGIN failed--compilation aborted at compare_s3_fifo.pl line 5. <<<<< TIA B.R. Stephen Liu -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM