02-24-2013
Letter Frequency Decryption Program in Perl
Hello,
:/
Last edited by jvr42; 02-25-2013 at 04:59 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Suppose u have two input files FILE A and FILE B
FILE A
AACD
ABBD
ACBC
FILE B
s/ A B C D E
A 1 -2 3 4 2
B 3 2 -1 2 1
C 2 3 1 2 3
D 3 4 -3 2 2
E 1 3 4 2 3
So in FILE A we have calculated frequency... (3 Replies)
Discussion started by: cdfd123
3 Replies
2. Shell Programming and Scripting
Hi all,
I made a simple script with a prompt menu in Perl. All working good, but I want to add an option while the program is running that on every time when the user press 'Q' the program will exit.
I know I can use $SIG{'INT'} or any other %SIG option. This option is a unix signal which I... (3 Replies)
Discussion started by: RedGrinGo
3 Replies
3. Shell Programming and Scripting
I wish to write a Perl program that will provide a listing of files in a directory. The files must be listed in sorted order by the file name.
• By default, the program displays only file names.
• By default, the program lists the files in the current directory.
• The program must provide the... (2 Replies)
Discussion started by: livewire06
2 Replies
4. Homework & Coursework Questions
Long story short: I'm working inside of a Unix SSH under a bash shell. I have to code a C program that generates a random number. Then I have to call the compiled C program with a Perl program to run the C program 20 times and put all the generated random #s into a text file, then print that text... (1 Reply)
Discussion started by: jdkirby
1 Replies
5. Shell Programming and Scripting
Hello,
I am working with a perl script that tries to find the average "frequency" in which lines are duplicated. So far I've only managed to find the way to count how many times the lines are repeated, the code is as follows:
perl -ae'
my $filename= $ENV{'i'};
open (FILE, "$filename") or... (10 Replies)
Discussion started by: acsg
10 Replies
6. Programming
Hi
I am new to perl, i need to write a program to convert horizontal words to vertical
eg: cat, dog, cow,.....(text file)
this should be written as
1.cat
2.dog
like this. can u pls help me to work out.. (4 Replies)
Discussion started by: nitha
4 Replies
7. Shell Programming and Scripting
Hi all,
I have one file with a sequence and the other file which says the position and the letter to be changed. I have to match two files and replace content. Example is shown which will describe what I want to do. For example, file 1 has many sequences and few are shown below
sequence file:... (6 Replies)
Discussion started by: kaav06
6 Replies
8. Shell Programming and Scripting
can anyone help me out to write a code by connecting to the sql database and I need to print the list of tables present in the databse.
any ideas please. (1 Reply)
Discussion started by: ramkumar15
1 Replies
9. Shell Programming and Scripting
Good afternoon all,
I want to ask how to change some letter in my file with other letter in spesific line
eg.
data.txt
1
1
1
0
0
0
0
for example i want to change the 4th line with character 1.
How could I do it by SED or AWK.
I have tried to run this code but actually did not... (3 Replies)
Discussion started by: weslyarfan
3 Replies
10. Shell Programming and Scripting
I created a program, so a kid can practice there math on it. It dispenses varies math problems and the kid must input an answer. I also want it to grade the work they have done, but I can't find the best place for it to print out the grade.
I have:
if ( $response =~ m/^/ ) {
$user_wants_to_quit... (1 Reply)
Discussion started by: germany1517
1 Replies
Purple(3) User Contributed Perl Documentation Purple(3)
NAME
Purple - Perl extension to the libpurple instant messenger library.
SYNOPSIS
use Purple;
ABSTRACT
This module provides the interface for using perl scripts as plugins
in libpurple.
DESCRIPTION
This module provides the interface for using perl scripts as plugins in Purple. With this, developers can write perl scripts that can be
loaded in Purple as plugins. The scripts can interact with IMs, chats, accounts, the buddy list, libpurple signals, and more.
The API for the perl interface is very similar to that of the Purple C API, which can be viewed at http://developer.pidgin.im/doxygen/ or
in the header files in the Purple source tree.
FUNCTIONS
@accounts = Purple::accounts
Returns a list of all accounts, online or offline.
@chats = Purple::chats
Returns a list of all chats currently open.
@connections = Purple::connections
Returns a list of all active connections.
@conversations = Purple::conversations
Returns a list of all conversations, both IM and chat, currently open.
@conv_windows = Purple::conv_windows
Returns a list of all conversation windows currently open.
@ims = Purple::ims
Returns a list of all instant messages currently open.
SEE ALSO
Purple C API documentation - http://developer.pidgin.im/doxygen/
Purple website - http://pidgin.im/
AUTHOR
Christian Hammond, <chipx86@gnupdate.org>
COPYRIGHT AND LICENSE
Copyright 2003 by Christian Hammond
This library is free software; you can redistribute it and/or modify it under the terms of the General Public License (GPL). For more
information, see http://www.fsf.org/licenses/gpl.txt
perl v5.12.1 2010-02-16 Purple(3)