Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: I use Perl at work for

by BigJoe (Curate)
on Apr 24, 2001 at 23:20 UTC ( #75217=note: print w/ replies, xml ) Need Help??


in reply to I use Perl at work for

I was hired as an ASP developer but I have changed their minds to use Perl for everything. I have just embedded some Perl to their brains

use Perl; foreach (@everything){ eval{$_}; }


--BigJoe

Learn patience, you must.
Young PerlMonk, craves Not these things.
Use the source Luke.


Comment on Re: I use Perl at work for
Download Code
Re: Re: I use Perl at work for
by Lexicon (Chaplain) on Apr 25, 2001 at 10:19 UTC
    Ahhh....so satisfying isn't it. It's unfortunate that Perl isn't so compatible with Japanese, or I might be able to convert everything to it. Of course, then I have to teach everyone how to use Perl.

    -Lexicon

      There is considerable internationalization work going on in Perl. People like Jeffrey Friedl have been using Perl to process Japanese text for some time, so it is possible even if I haven't done it.

      An alternative to consider if you don't want to figure out the appropriate hoops for Perl to jump is Ruby. It was developed in Japan so I bet its support for working with Japanese text is pretty good. I would have to investigate, but I suspect that Perl's Unicode support is further along. But Ruby has natively supported common Japanese formats for a while, but Perl isn't quite so strong there.

        Perl was doing really great until I tried to type a Japanese string directly into my source file. I can't remember the exact string, but something like:

        print "これは日本語ですよ!\n";  # This is Japanese Text, btw

        would die miserably because the interpreter saw the japanese characters one byte at a time, and eventually found a ". I'm not honestly sure that was what was going on, but the same code with English output was fine. use locale; and use utf8; only changed what the errors were. Also, piping Japanese text in and out through forms and text files works great too (so far).

        This was in PerlScript in IIS as well, I suppose that might have had something to do with it. I can at least say that the errors I received made the least sense of anything I'd ever seen. ;)

        I might give Ruby a look though...lots of Japanese documentation for them will only make my life easier. You thought explaining Regular Expressions in English was hard?

        -Lexicon

      Everything is already written in Perl. But I don't see what that has to do with Japane -- oh, wait. Ignore me.. ;>

       
      perl -e 'print "I love $^X$\"$]!$/"#$&V"+@( NO CARRIER'

Re: Re: I use Perl at work for
by diarmuid (Beadle) on Apr 27, 2001 at 18:12 UTC
    well as an Digital IC designer all our simulations produces tons of data files as does formal verification + synthesis. Perl rules for sorting /parsing these... + a million other uses

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://75217]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2014-09-30 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (384 votes), past polls