12-21-2009
Sorry..
i read his forums and found that utf8 pragma was difficuilt to understand.
We are developing a tool that can take any language as input and do the further operations.
Also, one of my pal told this is a site where we can get solutions.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello everyone. I am new to linux and need help again. I need help converting this bash shell to linux:
for i in `ls -l *.txt`
do
`./cnvidtf.pl $i`
`curl -u login:pswd --disable-espv -T loadfile.seq ftp://11.1.11.1`
`mysql -u login -h 11.1.11.1 -ppswd < lddocs.sql`
done
Thanks! Any help... (6 Replies)
Discussion started by: freak
6 Replies
2. Shell Programming and Scripting
Hello Everyone,
I have this code misbehaving in one of my scripts, I have a var containing the sequential number of the day for the year and I am suppose to get the regular date for that day and its weekday.
If I set the day to 273 I get back 2008/09/31 which is not a proper date.
can you help... (7 Replies)
Discussion started by: gio001
7 Replies
3. OS X (Apple)
Would it be "PerlApp" or "Active Perl?" Trying to decide on the best tool in order to edit and create a few perl scripts for a mac program I'm working with.
Any users out there? (2 Replies)
Discussion started by: unimachead
2 Replies
4. Shell Programming and Scripting
Hi,
I have searched, read and tried, but no luck.
I have this code:
#!/bin/perl -w #-d
use strict;
use POSIX qw(strftime);
my $getprpw_list="/usr/lbin/getprpw -l";
my $host = "nbsol151";
my $user = "genadmin";
my %uid;
my %spwchg;
my %upwchg;
my %slogint; (2 Replies)
Discussion started by: ejdv
2 Replies
5. Shell Programming and Scripting
I have oracle 9i database installed with UTF-8 Encoding.
I want a perl script that converts unicode to utf8 before commiting in database and utf8 to unicode when retreiving from database
For example :
the word Ïntêrnatïônàlîzâtion has to be stored in database as Internationalization and when retreived... (6 Replies)
Discussion started by: vkca
6 Replies
6. Shell Programming and Scripting
Hello:
I butchered a shell script together, but my script kung-fu is 5 years old and all I've used for 5 years are for i loops. I hope that some perl guru can do in 5 minutes what takes me 5 weeks, so I am asking for help.
I have a simple script using "grep -A 2 'string' /path/to/file" but... (4 Replies)
Discussion started by: Habitual
4 Replies
7. Shell Programming and Scripting
Hi,
I have a file as below
I need to overwrite the 2 nd column alone to numeric format like "06122011030414012345" as per the timestamp value
output file should be
the microseconds can be neglected if required.
Any help will be appreciated.
Thanks in advance (1 Reply)
Discussion started by: irudayaraj
1 Replies
8. Shell Programming and Scripting
Hi,
How to do Perl script for floating license usages metric. Anyone help me out this issue?
Regards,
Ram. (0 Replies)
Discussion started by: ramanthan
0 Replies
9. Shell Programming and Scripting
Hello Sir,
How can i convert below two loop lines in perl
for BLOCK in /sys/block/myblock*
for BLOCK in /dev/myblock*
How i can write them in perl like
foreach( </sys/block/myblock*/queue/nr_requests> ) (5 Replies)
Discussion started by: learnbash
5 Replies
10. Shell Programming and Scripting
Dear All,
I need to print the below value from excel column
20160219T05:21:59+0100
to
19-FEB-2016 05:21:11
Can anyone help on this datetime format conversion.
Please suggest in print logic itself.
Regards,
Kumaresan P (6 Replies)
Discussion started by: Kumaresanpvk
6 Replies
LEARN ABOUT DEBIAN
utf8::all
utf8::all(3pm) User Contributed Perl Documentation utf8::all(3pm)
NAME
utf8::all - turn on Unicode - all of it
VERSION
version 0.004
SYNOPSIS
use utf8::all; # Turn on UTF-8. All of it.
open my $in, '<', 'contains-utf8'; # UTF-8 already turned on here
print length 'foo bXr'; # 7 UTF-8 characters
my $utf8_arg = shift @ARGV; # @ARGV is UTF-8 too!
DESCRIPTION
utf8 allows you to write your Perl encoded in UTF-8. That means UTF-8 strings, variable names, and regular expressions. "utf8::all" goes
further, and makes @ARGV encoded in UTF-8, and filehandles are opened with UTF-8 encoding turned on by default (including STDIN, STDOUT,
STDERR), and charnames are imported so "N{...}" sequences can be used to compile Unicode characters based on names. If you don't want
UTF-8 for a particular filehandle, you'll have to set "binmode $filehandle".
The pragma is lexically-scoped, so you can do the following if you had some reason to:
{
use utf8::all;
open my $out, '>', 'outfile';
my $utf8_str = 'foo bXr';
print length $utf8_str, "
"; # 7
print $out $utf8_str; # out as utf8
}
open my $in, '<', 'outfile'; # in as raw
my $text = do { local $/; <$in>};
print length $text, "
"; # 10, not 7!
AVAILABILITY
The project homepage is http://metacpan.org/release/utf8-all/ <http://metacpan.org/release/utf8-all/>.
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to
find a CPAN site near you, or see http://search.cpan.org/dist/utf8-all/ <http://search.cpan.org/dist/utf8-all/>.
The development version lives at http://github.com/doherty/utf8-all <http://github.com/doherty/utf8-all> and may be cloned from
git://github.com/doherty/utf8-all.git <git://github.com/doherty/utf8-all.git>. Instead of sending patches, please fork this project using
the standard git and github infrastructure.
SOURCE
The development version is on github at http://github.com/doherty/utf8-all <http://github.com/doherty/utf8-all> and may be cloned from
git://github.com/doherty/utf8-all.git <git://github.com/doherty/utf8-all.git>
BUGS AND LIMITATIONS
No bugs have been reported.
Please report any bugs or feature requests through the web interface at https://github.com/doherty/utf8-all/issues
<https://github.com/doherty/utf8-all/issues>.
AUTHORS
o Michael Schwern <mschwern@cpan.org>
o Mike Doherty <doherty@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2009 by Michael Schwern <mschwern@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-01-10 utf8::all(3pm)