Re: [Perl-unix-users] structuring languge dependent code

2002-08-15 Thread Martin Moss
> The only issue I have is I want to pass it the language locale on the fly? > Is this possible? DOH RTFM! Tired need slp. Cheers all, Marty ___ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mai

Re: [Perl-unix-users] structuring languge dependent code

2002-08-15 Thread Martin Moss
Thats absolutely the problem I was trying to solve, and a great solution. It doesn't look like there'd be issues with using it under perl 5.6? The only issue I have is I want to pass it the language locale on the fly? Is this possible? Thanks Randy, you get the gold star award, Kind regards Mar

RE: [Perl-unix-users] structuring languge dependent code

2002-08-15 Thread Randy W. Sims
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > Martin Moss > Sent: Thursday, August 15, 2002 2:16 PM > To: [EMAIL PROTECTED] > Cc: Perl-Unix-Users > Subject: [Perl-unix-users] structuring languge dependent code > > > All, > > Does anybody have any

[Perl-unix-users] perl module problem

2002-08-15 Thread stuv48ac
Hi I have a question please. My ISP have not instaled a Perl Module whitch I need for my script. So my script doesn't work. I am a programer so I remember it is a way to add functions (methods) from that library to the script and you not need that library. Your script will get the methosds form

[Perl-unix-users] structuring languge dependent code

2002-08-15 Thread Martin Moss
All, Does anybody have any suggestion how the Directory structuring of Modules. For instance I would like to support 3 languages. Therefore I want 3 different versions of the same module, but each one providing error messages and output in a specific language. so perhaps:- MyName::SubName1::F

RE: [Perl-unix-users] Remove blank lines from a file

2002-08-15 Thread Thomas_M
Of course there's a one-command-liner: perl -ne "print if /\S/" < file.txt > file2.txt -- Mark Thomas[EMAIL PROTECTED] Sr. Internet Architect User Technology Associates, Inc. $_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;; > -Origin

RE: [Perl-unix-users] Remove blank lines from a file

2002-08-15 Thread Einecker, Leah
You could use something like this: open MYFILE, "<$filename" or die "can't open the file: $!"; foreach $one_line () { push (@lines, $one_line) if $one_line =~ /\S/; } close MYFILE; # now only the non-blank lines are in @lines Cheers, -L -Original Message- From: Craig Sharp [mail

Re: [Perl-unix-users] Remove blank lines from a file

2002-08-15 Thread jimmy
while (<>) { print unless /^$/; } -- James Schappet Schappet.com On Thu, 15 Aug 2002, Craig Sharp wrote: > I have a simple question but I have brain lock. > > I need to parse a file and remove all blank lines from the file. > > Thanks, > > Craig > > __

[Perl-unix-users] Remove blank lines from a file

2002-08-15 Thread Craig Sharp
I have a simple question but I have brain lock. I need to parse a file and remove all blank lines from the file. Thanks, Craig ___ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs