Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: dmazzini
  • Content: Threads
  • Order by date
  1. dmazzini

    XML::Lib - Getting values from XML Node

    Hi guys Not very active programming these days, but I have a question about one script using XML::Lib XML Looks like this, I need to get type, uri and href from "target" using XML::Lib. <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <tags size="3" uri="XXXXXX"> <tag href="ZZZZZZZZ"...
  2. dmazzini

    Writing multiline record (2D Arrays) to excel using Win32OLE

    Hi I have an array with a variable number of multi lines records. Array contains data coming from different txt files. I dont care the file contents, I just need to copy and paste it into Excel worksheets All other script routines have been developed using Win32::Ole module. The question is...
  3. dmazzini

    Reading/Modifying data block based on one parameter

    Hi Any ideas.... I am reading a file where I have to extract some information and modify some parameters based on one value that its not present at the begining of the data "AAL2UPVCI", but its part of a node. e.g I have to modify parameter4 and parameter5, but if the block contains <p...
  4. dmazzini

    Removing french chars from string

    Hi guys I have been looking for an easy way to remove french chars from string and and I did not find it. So, I came out with it, it works ok, so it may be useful as a reference. Maybe someone on the forum has better idea. $wbts_location_iub =~...
  5. dmazzini

    GUI Telnet Client for Linux

    Hi guys I am looking for a Telnet Client “program that runs on Linux Red Hat. Let me give you more details. There is a Linux computer that can access some Telecommunications Equipments (Radio Network Controller “RNC”) via telnet. I have a txt file with some proprietary commands that I have to...
  6. dmazzini

    Setting expiration date in perl script.

    Hi I would like to set expiration date for a perl application, executable created using PDK Active State. Platform is Win32. The following code works well, the problem is that if user change Date and time from windows, it will not work. BEGIN { return unless defined $PerlApp::VERSION...
  7. dmazzini

    Taking out and inserting Node of data from XML files - Regex Help

    Hi guys I got a question about how to take out/insert a block of data (Nodes) from XML docs "without" use any XML parsers. These are huge xml files, some of them more than 700 Mb. Example file might looks like [code] <Root> <Node 1> x x x </Node 1> <Node 2> y y y </Node 2> <Node 1> a b c...
  8. dmazzini

    Busy script - Processing - Displaying a Label - Perl Tk

    Hi I would like to present a label showing to the user that script is working or processing something, then destroy label after script finish whatever is doing. Same concept as $mw->Busy icon. I have got the routines, however when I call "working_on" routine, script will stop there and it will...
  9. dmazzini

    Create a Mac Dock Style using Perl

    Hi guys I have installed few days ago the application. objectdock_freeware.exe, It really looks nice on windows. I would like to create a Perl-Tk (gtk) application using same style as Mac Dock. You know, the bar at the botton of the window which maximize icons whe user point it with the...
  10. dmazzini

    Embedding images inside Perl Code

    Hi guys I was playing with some Tk code found in the net and I am wondering How Can I convert an image (.jpeg, gif etc)into "pixmap code"? See $data for instance, Is there any free tool to do it? Thanks #!/usr/bin/perl use strict; use Tk; use Tk::Photo; my $GUI_LOGO_WIDTH = 597; my...
  11. dmazzini

    Retrieving multi-lines records from a file based on a criterial

    Hi I have a files with multiline records, I want to extract some records based on a criterial and generate another file. I have created a script and it workds fine using __DATA__, but when I try it reading a file it does not work, If I open a filehandle in order to read an external file it...
  12. dmazzini

    Creating report - &quot;multiline variables&quot; as a table

    Creating report - "multiline variables" as a table Hi guys I have generated a output report (table) based on some data input. I wanted to show data for "multiline variables" as a table. e.g. varibles might be $variable= qq(xxx 234 yyy 124 fff 23 12...
  13. dmazzini

    Show result of one subroutine in another xterm (Unix HP-UX)

    Hi guys I have a question regarding how to show perl script output in another window terminal "xterm" without use another perl script. I have done some tools in the past where I have different perl script per options.. my $fg = "lightgrey"; my $bg = "black"; my %OSSSVR; $OSSSVR{hntx} =...
  14. dmazzini

    Calculating where a string start,where ends and offset based on regex?

    Hi guys I have many kinds of different reports where the data is located at the same position as the headers. For example, as you can see here WBTS-1695 is just under header NE-ID, L6070407474 is just under "Target Id" column and so on. NE-ID Target Id In Topology...
  15. dmazzini

    regex question

    Regex Question I have different valid Radio Frequency Modules Type:FRGA,FRIA,FREA,FRCA,FRDA,FRFA and FRGC if ($module =~ /FR(G|I|E|C|D|F)A/) # This regex covers FRGA,FRIA,FREA,FRCA,FRDA and FRFA Now, I want to match module FRGC within regex, is it possible or I have to add "or"...
  16. dmazzini

    Parsing file - Regex question - variable amount of records per row

    Hi guys I am parsing a file where the records are variable. e.g One row may have different amount of records. Records are separated by spaces, so if record dont exist I want to put "NA" or leave blank since I will create a output file comma separated value: e.g...
  17. dmazzini

    Sorting structure with 2 keys

    I have perl structure: @{$DATA->{RNCID}{$rncid}{$wbtsid}} $rncid and $wbtsid (keys) are numeric and I would like to sort by $rncid and then for bts id. I tried: foreach $rncid (sort {$a cmp $b}(keys %{$DATA->{RNCID}})){ foreach $wbtsid (sort {$a cmp $b} keys...
  18. dmazzini

    Invoking sqlplus in another machine - Net::Telnet

    I am trying to connect to a remote unix machine using Net::Telnet, then execute this in the remote machine: It works ok from command line in the remote machine tpflss1:/m/home/dmazzini (16) dmazzini% echo "select name from objects where object_class = 811 and object_instance <> 0 and name is...
  19. dmazzini

    Running executable file (OLE) with arguments from pb executable file

    Hi guys I want to be able to run an executable file with arguments from PB application. I am doing on this way.(Command buton ok pb within executable file) all_actions = "C:\Documents and Settings\dmazzini\Desktop\POWER-BUILDER-V11-WORK-SPACE\PB PROGRAMS\GUIPB\receiving_arg_from_pb.exe" + '...
  20. dmazzini

    Split array by special character and getting values

    @values= (value1|value2|value3|value4|value5|value6|value7); Elements of the array @values can have spaces in the middle, e.g: value6 = "C:\Documents and Settings\dmazzini\Desktop\my dir\my first.xls"; How I can split up array @values by "|" and assign values to variables, like...

Part and Inventory Search

Back
Top