Sponsored Content
Top Forums Shell Programming and Scripting Help loading a program into perl from a file on desktop Post 302294536 by otheus on Thursday 5th of March 2009 11:28:41 AM
Old 03-05-2009
open a command window and type

perl PaGE_5.1.6.pl
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help fix my garbage - File Split Program in Perl

Hi, I have the following, it doesn't work and I know it's crap code. The objective is to split a file with a givin number of codes such as: 01,02,03,...,99 Then return all records with each seperate identifier in a new file. The files being split have lrecl=500, recfm=F, and I... (4 Replies)
Discussion started by: mkastin
4 Replies

2. Shell Programming and Scripting

Loading variables - Perl

I'm trying to load a set of variables as defined by a local configuration file. Not too sure what I'm missing so I'll just post it as a whole. blub.pl #!/usr/bin/perl use strict; use warnings; my $config_file="blub.config"; Config_Loader(); sub Config_Loader {... (8 Replies)
Discussion started by: adelsin
8 Replies

3. Shell Programming and Scripting

extract string and sending it into a new file in perl program

Hi, I have a input file with following values (test.out) I would like to grep all lines with word 'PANIC' and sent it another file using perl program with grep command. I have been trying different ways and not working. Pls advice. Thanks a lot for the help. --example--... (3 Replies)
Discussion started by: hudson03051nh
3 Replies

4. Shell Programming and Scripting

Read from config file and use it in perl program

Hi, I want to configure some values in config file like below work_dir /home/work csv_dir /home/csv sql_dir /home/sqls reportfirst yes and i want to store each value in variable to use it further in my my perl program ?? any thought on this(i am new to perl) ? ... (2 Replies)
Discussion started by: raghavendra.nsn
2 Replies

5. UNIX for Dummies Questions & Answers

Program: How to FTP logs from a Server to Desktop

Hi guys, Good day! Anyone there could suggest on how can I create a program that will get (ftp) the logs I need from a remote Server (running in Linux) into my Desktop (running in Windows 7). For Perl program suggestions, FYI that I'm using Active Perl version. The reason why I need this one is... (2 Replies)
Discussion started by: rymnd_12345
2 Replies

6. Programming

Perl : Inline program to determine file size

Hi, I have 5 files as below $ ll sam* -rw-rw-rw- 1 sam ugroup 0 Mar 21 06:06 sam3 -rw-rw-rw- 1 sam ugroup 0 Apr 3 22:41 sam2 -rw-rw-rw- 1 sam ugroup 17335 Apr 10 06:07 sam1 -rw-rw-rw- 1 sam ugroup 5 Apr 10 07:53 sam5 -rw-rw-rw- 1 sam ugroup 661 Apr 10 08:16 sam4 I want to list out... (4 Replies)
Discussion started by: sam05121988
4 Replies

7. Shell Programming and Scripting

Perl program for find one entry and put in different file

Hi I have a file name1 xxxxx name1 xxxxx name1 yyyyy name 1 zzzzz name1 Uniprot Id 1234 name2 sssss name2 eeeee name2 bengamine name2 Uniprot Id 3456 ......................and so on I have to capture Uniprot IDs only in a separate file so that output contain only ... (20 Replies)
Discussion started by: manigrover
20 Replies

8. UNIX for Dummies Questions & Answers

Problem in loading program correctly using SSH and X11 forwading

I'm trying to load a program remotely using SSH with X11 forwarding. I have no issue with loading xwindows and programs like firefox works fine. But one software that I use for my work has some issues when I load it up. For example, I can't see the pull-down menus etc, which show up when I load it... (1 Reply)
Discussion started by: lost.identity
1 Replies

9. Fedora

Nvidia Module Not Loading (Desktop Gone)

Well, I followed the steps in the Debian wiki here to install the drivers for the following video card: $ lspci | grep VGA 03:00.0 VGA compatible controller: NVIDIA Corporation GF104 (rev a1)I confirmed the correct driver is installed. As you probably see I've tried this a few times and a few... (1 Reply)
Discussion started by: Azrael
1 Replies
bindtags(3)						User Contributed Perl Documentation					       bindtags(3)

NAME
Tk::bindtags - Determine which bindings apply to a window, and order of evaluation SYNOPSIS
$widget->bindtags([tagList]); @tags = $widget->bindtags; DESCRIPTION
When a binding is created with the bind command, it is associated either with a particular window such as $widget, a class name such as Tk::Button, the keyword all, or any other string. All of these forms are called binding tags. Each window has a list of binding tags that determine how events are processed for the window. When an event occurs in a window, it is applied to each of the window's tags in order: for each tag, the most specific binding that matches the given tag and event is executed. See the Tk::bind documentation for more information on the matching process. By default, each window has four binding tags consisting of the the window's class name, name of the window, the name of the window's nearest toplevel ancestor, and all, in that order. Toplevel windows have only three tags by default, since the toplevel name is the same as that of the window. Note that this order is different from order used by Tcl/Tk. Tcl/Tk has the window ahead of the class name in the binding order. This is because Tcl is procedural rather than object oriented and the normal way for Tcl/Tk applications to override class bindings is with an instance binding. However, with perl/Tk the normal way to override a class binding is to derive a class. The perl/Tk order causes instance bindings to execute after the class binding, and so instance bind callbacks can make use of state changes (e.g. changes to the selection) than the class bindings have made. The bindtags command allows the binding tags for a window to be read and modified. If $widget->bindtags is invoked without an argument, then the current set of binding tags for $widget is returned as a list. If the tagList argument is specified to bindtags, then it must be a reference to and array; the tags for $widget are changed to the elements of the array. (A reference to an anonymous array can be created by enclosin the elements in [ ].) The elements of tagList may be arbitrary strings or widget objects, if no window exists for an object at the time an event is processed, then the tag is ignored for that event. The order of the elements in tagList determines the order in which binding callbacks are executed in response to events. For example, the command $b->bindtags([$b,ref($b),$b->toplevel,'all']) applies the Tcl/Tk binding order which binding callbacks will be evaluated for a button (say) $b so that $b's instance bindings are invoked first, following by bindings for $b's class, followed by bindings for $b's toplevel, followed by 'all' bindings. If tagList is an empty list i.e. [], then the binding tags for $widget are returned to the perl/Tk default state described above. The bindtags command may be used to introduce arbitrary additional binding tags for a window, or to remove standard tags. For example, the command $b->bindtags(['TrickyButton',$b->toplevel,'all']) replaces the (say) Tk::Button tag for $b with TrickyButton. This means that the default widget bindings for buttons, which are associated with the Tk::Button tag, will no longer apply to $b, but any bindings associated with TrickyButton (perhaps some new button behavior) will apply. BUGS
The current mapping of the 'native' Tk behaviour of this method i.e. returning a list but only accepting a reference to an array is counter intuitive. The perl/Tk interface may be tidied up, returning a list is sensible so, most likely fix will be to allow a list to be passed to /fIset/fR the bindtags. SEE ALSO
Tk::bind Tk::callbacks KEYWORDS
binding, event, tag perl v5.12.1 2007-05-05 bindtags(3)
All times are GMT -4. The time now is 06:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy