03-25-2009
Post what code you have written so far and post some real sample lines from the log file
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
newbie-ish question here. I have this script:
foreach $test (@num)
{
foreach $record (@neet)
{
if ($record =~ /$test/){
print "$record \n";
print $test;
}
}
}
For some reason, the $test variable doesn't seem to be carrying into the second "foreach" loop. Does anyone know why... (1 Reply)
Discussion started by: Khoomfire
1 Replies
2. Shell Programming and Scripting
what is the difference in regexes using symbols like
^NAME$|^SELF$
and
\bNAME\b
\bSELF\b (1 Reply)
Discussion started by: Sgiri1
1 Replies
3. Shell Programming and Scripting
i have file which contains data like this every day.i need to pull up a report for counting the 203's in that file for each subscriber id.there are around 200 subscriber id's. all ths Y's which i have written in the script are the subscriber id's.could some one give me an idea as to how do it in... (22 Replies)
Discussion started by: archana234
22 Replies
4. Shell Programming and Scripting
Hello everyone,
I am having to do a lot of perl scripting these days and I am learning a lot.
I have this problem
I want to move files from a folder and all its sub folders to one parent folder, they are all .gz files..
there is folder1\folder2\*.gz
and there are about 50 folders... (1 Reply)
Discussion started by: xytiz
1 Replies
5. Shell Programming and Scripting
Hi,
I am new to programming and also to perl..But i know 'perl' can come to my rescue, But I am stuck at many places and need help..any small help is much appreciated... below is the description of what i intend to acheive with my script.
I have a files named in this format... (13 Replies)
Discussion started by: xytiz
13 Replies
6. Shell Programming and Scripting
Hi,
So I started to learn perl a few days ago, and I have some problems...
One of my problems...
#!C:\Perl64\bin\perl.exe -w
use LWP::Simple;
print "Content-Type: Text/Plain\n\n";
sub pagelinks {
return @all = get($_) =~ /href\s*=\s*"?(+)/gis;
}
@a =... (5 Replies)
Discussion started by: byte1918
5 Replies
7. Shell Programming and Scripting
Hi,
I am using the below shell script to update the webalizer stats:
#!/bin/bash
username='elogic1'
domain='abcd.com'
path_to_webalizer='/hsphere/shared/bin/webalizer'
path_to_logs='/hsphere/local/home/elogic1/logs/abcd.com'... (4 Replies)
Discussion started by: gsiva
4 Replies
8. Shell Programming and Scripting
Evening all, i hope you guys can help !!
I'm working on a pass purchase system and would like to run a script every day from cron which looks at the previous day log files and produce some kind of stats for passes purchased / success / failures.
Issues.
I have around 25 passes and for each... (13 Replies)
Discussion started by: jeffersno1
13 Replies
9. Shell Programming and Scripting
Hi
I have a perl script that prints all the video and audio file information(playing duration).
It works fine in one of my friends linux laptop.
But it doesn't work in my both windows and linux.
My friend told me I have to do install some module ( ppm instal ...... )
but I have no... (1 Reply)
Discussion started by: srijith
1 Replies
10. Shell Programming and Scripting
I am completely new to perl programming. My father is helping me learn said programming language. However, I am stuck on one of the assignments he has given me, and I can't find very much help with it via google, either because I have a tiny attention span, or because I can be very very dense.
... (4 Replies)
Discussion started by: kittyluva2
4 Replies
LEARN ABOUT CENTOS
font::ttf::post
Font::TTF::Post(3) User Contributed Perl Documentation Font::TTF::Post(3)
NAME
Font::TTF::Post - Holds the Postscript names for each glyph
DESCRIPTION
Holds the postscript names for glyphs. Note that they are not held as an array, but as indexes into two lists. The first list is the
standard Postscript name list defined by the TrueType standard. The second comes from the font directly.
Looking up a glyph from a Postscript name or a name from a glyph number is achieved through methods rather than variable lookup.
This class handles PostScript table types of 1, 2, 2.5 & 3, but not version 4. Support for version 2.5 is as per Apple spec rather than
MS.
The way to look up Postscript names or glyphs is:
$pname = $f->{'post'}{'VAL'}[$gnum];
$gnum = $f->{'post'}{'STRINGS'}{$pname};
INSTANCE VARIABLES
Due to different systems having different limitations, there are various class variables available to control what post table types can be
written.
$Font::TTF::Post::no25
If set tells Font::TTF::Post::out to use table type 2 instead of 2.5 in case apps cannot handle version 2.5.
VAL Contains an array indexed by glyph number of Postscript names. This is used when writing out a font.
STRINGS
An associative array of Postscript names mapping to the highest glyph with that name. These may not be in sync with VAL.
In addition there are the standard introductory variables defined in the standard:
FormatType
italicAngle
underlinePosition
underlineThickness
isFixedPitch
minMemType42
maxMemType42
minMemType1
maxMemType1
METHODS
$t->read
Reads the Postscript table into memory from disk
$t->out($fh)
Writes out a new Postscript name table from memory or copies from disk
$t->XML_element($context, $depth, $key, $val)
Outputs the names as one block of XML
BUGS
o No support for type 4 tables
AUTHOR
Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright and licensing.
perl v5.16.3 2012-02-23 Font::TTF::Post(3)