Re: Hash in file Formats

2015-12-16 Thread perl kamal
Please find the attachment. On Thu, Dec 17, 2015 at 1:26 AM, Raj Barath wrote: > Can you share a simple of JSON file and from that let us know what you > want to capture. > > On Wed, Dec 16, 2015, 3:41 PM perl kamal wrote: > >> ++Subject & Thanks. >> >> On Thu, Dec 17, 2015 at 1:08 AM, perl kam

Re: Hash in file Formats

2015-12-16 Thread Raj Barath
Can you share a simple of JSON file and from that let us know what you want to capture. On Wed, Dec 16, 2015, 3:41 PM perl kamal mailto:kamal.p...@gmail.com>> wrote: ++Subject & Thanks. On Thu, Dec 17, 2015 at 1:08 AM, perl kamal mailto:kamal.p...@gmail.com>> wrote: Hi, I am trying to read a

Re: Hash in file Formats

2015-12-16 Thread Raj Barath
Can you share a simple of JSON file and from that let us know what you want to capture. On Wed, Dec 16, 2015, 3:41 PM perl kamal mailto:kamal.p...@gmail.com>> wrote: ++Subject & Thanks. On Thu, Dec 17, 2015 at 1:08 AM, perl kamal mailto:kamal.p...@gmail.com>> wrote: Hi, I am trying to read a

Re: Hash in file Formats

2015-12-16 Thread perl kamal
++Subject & Thanks. On Thu, Dec 17, 2015 at 1:08 AM, perl kamal wrote: > Hi, > > I am trying to read a json output file,capture the required information, > storing them in an array and format the output in a file. > Please review my code and suggest me is there any way to construct the > hash da

Re: Formats for invoices.

2007-06-28 Thread Daniel Kasak
On Thu, 2007-06-28 at 17:24 -0700, Tom Phoenix wrote: > On 6/28/07, Francisco Valladolid <[EMAIL PROTECTED]> wrote: > > > 1.- How can put lines containing products descriptions ? > > 2.- Ho can justify or align a variable into format ? > > Have you seen the perlform manpage? > > http://perl

Re: Formats for invoices.

2007-06-28 Thread Chas Owens
On 6/28/07, Tom Phoenix <[EMAIL PROTECTED]> wrote: On 6/28/07, Francisco Valladolid <[EMAIL PROTECTED]> wrote: > 1.- How can put lines containing products descriptions ? > 2.- Ho can justify or align a variable into format ? Have you seen the perlform manpage? http://perldoc.perl.org/perlf

Re: Formats for invoices.

2007-06-28 Thread Tom Phoenix
On 6/28/07, Francisco Valladolid <[EMAIL PROTECTED]> wrote: 1.- How can put lines containing products descriptions ? 2.- Ho can justify or align a variable into format ? Have you seen the perlform manpage? http://perldoc.perl.org/perlform.html Hope this helps! --Tom Phoenix Stonehenge Pe

Formats for invoices.

2007-06-28 Thread Francisco Valladolid
Hi Folks I'm doing a single perl script to get data from a database (SQLlite), and want put some data in a format The output format is record in a simple temporary .txt file and send to lpr. the format is for a invoice displaying most important data. I have the next questions. 1.- How can put

how can save the expanded tree in different formats.

2006-05-03 Thread onvramakrishnaj1 j
here i am created a tree using this Tk::Tree module like this pogram #!/pkg/qct/software/perl/bin/perl use Tk; use Tk::Tree; my $mw = MainWindow->new(-title => 'HList'); my $tree = $mw->Tree->pack; foreach (qw/orange orange.red orange.yellow green green.blue green.yellow purple

Re: formats and write()

2004-04-29 Thread John W. Krahn
Dani Pardo wrote: > > Hi, I've a question involving formats. > I have a text file that has lines like this: > > __LINE1__ > __LINE2__ > > I use s/__LINE(\d+)__/$line{$1}/ to change each of these lines by an > scalar that is stored in a hash, i.e: > &g

formats and write()

2004-04-29 Thread Dani Pardo
Hi, I've a question involving formats. I have a text file that has lines like this: __LINE1__ __LINE2__ I use s/__LINE(\d+)__/$line{$1}/ to change each of these lines by an scalar that is stored in a hash, i.e: line{1}="CUSTOMER_NAME | PHONE | EMAIL | COUNTRY"

Re: formats

2003-12-06 Thread drieux
On Dec 5, 2003, at 6:39 PM, Jose Malacara wrote: [..] write TYPE_1; that's the sticky bit, where tom is talking about not writing to a filehandle... [..] To expand on tom's comments a bit: which generates Type: type1Ga

RE: formats

2003-12-05 Thread Tom Kinzer
To just use it for STDOUT, it's pretty straight forward, switching the special $~ variable as needed. You're switching FORMATs not filehandles. There may be a shortcut but this is how I would do it for this problem: -Tom Kinzer _ format TYPE_1 = Im formated

formats

2003-12-05 Thread Jose Malacara
Is it possible to use more than one format in a script? I am parsing a log file to STDOUT and would like to be able to write to two (or more) different formats depending on the information found in the log. This is what I'm trying to do: 1. open and read logfile 2. if you find "s

Re: Script chokes on various file formats.

2003-08-16 Thread Ramprasad
Trina Espinoza wrote: I am starting to write a lot of scripts that require a user to input a file that my script processes for data. Since there are may file formats rtf, txt, microsoft word, etc, my scripts have often choked when users submit the data in various file formats. I need something to

Script chokes on various file formats.

2003-08-14 Thread Trina Espinoza
I am starting to write a lot of scripts that require a user to input a file that my script processes for data. Since there are may file formats rtf, txt, microsoft word, etc, my scripts have often choked when users submit the data in various file formats. I need something to ensure my scripts

RE: Formats

2002-12-11 Thread Dave Chappell
Please disregard, after a day of hair-pulling and hacking I managed to figure it out. Dave C. -Original Message- From: Dave Chappell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 11:52 AM To: [EMAIL PROTECTED] Subject: Formats Attached is one of a few (work in

Formats

2002-12-10 Thread Dave Chappell
Title: Message Attached is one of a few (work in progress) scripts that I am creating to report on security events in a M$ network. The issue I am having is, the second format, STDBODY is not printing. Since STDBODY can contain many lines I even tried adding  ~~ to the fieldline as suggested

Re: Converting IE 'Favorites' to other formats

2002-09-13 Thread Ramprasad A Padmanabhan
The Best thing will be to avoid a script In IE Select File -> Import & Export in the dialog that appear,select export favourites,select Favourites source folder ( select the topmost level, to select all). This creates a html file of your favourites and copy this file as your bookmarks.html i

Converting IE 'Favorites' to other formats

2002-09-12 Thread Phil
I've been working on moving from Win2k to Linux and learning Perl at the same time, so I thought I'd kill two birds with one stone and write a Perl program to convert my IE bookmarks to Mozilla format. The meat of the code is at the end - comments and suggestions are more than welcome. At an

Re: Time and date formats

2002-03-01 Thread Brett W. McCoy
On Fri, 1 Mar 2002, Troy May wrote: > What do the letters after the "%02" mean? I know about "%02d", but I came > across a few scripts with "%02u" in it. I've never seen that, what does it > mean? What's the difference between the "d" and the "u"? And what ELSE can > you possibly use there?

RE: Time and date formats

2002-03-01 Thread Timothy Johnson
Original Message- From: Troy May To: Perl Beginners Sent: 3/1/02 5:50 PM Subject: Time and date formats What do the letters after the "%02" mean? I know about "%02d", but I came across a few scripts with "%02u" in it. I've never seen that, what does it

Time and date formats

2002-03-01 Thread Troy May
What do the letters after the "%02" mean? I know about "%02d", but I came across a few scripts with "%02u" in it. I've never seen that, what does it mean? What's the difference between the "d" and the "u"? And what ELSE can you possibly use there? -- To unsubscribe, e-mail: [EMAIL PROTECTED

RE: Formats, cont'd

2002-02-01 Thread Wagner-David
7 Wags ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 10:46 To: [EMAIL PROTECTED] Subject: Formats, cont'd I have two arrays, @array_a and @array_b, that contain info I want formatted. I would like to have the

Formats, cont'd

2002-02-01 Thread ABhagwandin
I have two arrays, @array_a and @array_b, that contain info I want formatted. I would like to have the output look something like: dataset A dataset B -- a1 b1 a2

RE: Formats

2002-02-01 Thread ABhagwandin
thanks a lot! -Original Message- From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 1:19 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Formats On Feb 1, [EMAIL PROTECTED] said: >Why does the following not work for me? &

Re: Formats

2002-02-01 Thread Jeff 'japhy' Pinyan
On Feb 1, [EMAIL PROTECTED] said: >Why does the following not work for me? > >format NAME = >TEST > >@<<< >$test >.. > >$test = "asdfjkl;"; > >select(NAME); >write(); That tries writing to the filehandle NAME, too. Instead of select(NAME), do: $~ = "NAME"; That will set ST

FW: Formats

2002-02-01 Thread ABhagwandin
-Original Message- From: Anthony Bhagwandin Sent: Friday, February 01, 2002 1:11 PM To: [EMAIL PROTECTED] Subject: Formats Why does the following not work for me? format NAME = TEST @<<<<<<<<<<<<<<< $test $test = "asd

Formats

2002-02-01 Thread ABhagwandin
Why does the following not work for me? format NAME = TEST @<<< $test .. $test = "asdfjkl;"; select(NAME); write(); __END__ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: writing formats

2002-01-29 Thread William.Ampeh
The trick is to make sure that your output file has the same name as your main format routine. So in my case I have: select ("STDOUT"); and format STDOUT = The STDOUT_TOP is automatically selected at the beginning of each page. Maybe this will help (that is if it is not too late) The out

Re: writing formats

2002-01-29 Thread Jeff 'japhy' Pinyan
On Jan 29, Thunem, Tom said: >can anyone tell me how to toggle between 2 different formats writing to the >same output filehandle? i am not having luck with coding the select and >write statements. By default, the format for any given filehandle has the same name as the filehandle it

writing formats

2002-01-29 Thread Thunem, Tom
can anyone tell me how to toggle between 2 different formats writing to the same output filehandle? i am not having luck with coding the select and write statements. thanks Tom Thunem Sr. Systems Specialist, Global E-Business Infrastructure, Americas Avnet, Inc. [EMAIL PROTECTED] -- To

Re: Substitution formats

2002-01-20 Thread Jeff 'japhy' Pinyan
On Jan 19, Troy May said: >I've tried some other formats with brackets, parenthesis, etc. Nothing else >works. You've done something wrong, then. If you use <, {, (, or [, you match it up with its mirror image, >, }, ), or ]. Any other NON-word NON-whitespace charact

RE: Substitution formats

2002-01-20 Thread Gary Hawkins
I'm a big fan of s###. Easy for me to read. /g > -Original Message- > From: Troy May [mailto:[EMAIL PROTECTED]] > Sent: Saturday, January 19, 2002 11:45 PM > To: Perl Beginners > Subject: Substitution formats > > > Hello, > > I only knew of one w

Substitution formats

2002-01-19 Thread Troy May
Hello, I only knew of one way to do them: s/// But japhy once answered me with this format: s{}{} Another guy said you can use exclamation points? I'm assuming: s!!! I've tried some other formats with brackets, parenthesis, etc. Nothing else works. What other formats will wor

Re: Displaying text formats in a text widget...

2001-06-12 Thread Jeff 'japhy' Pinyan
On Jun 12, Brennan, Corey said: >I am trying to convert a script to Perl/Tk and I am having trouble. I have >some formats defined I've no clue how you'd get formats to write() to a Tk widget... you'd have to use formline() and the $^A variable, methinks. But have

Displaying text formats in a text widget...(2)

2001-06-12 Thread Brennan, Corey
Sorry if this comes twice, but I think I had a problem sending it the first time. >I am trying to convert a script to Perl/Tk and I am having trouble. I have some formats defined > >example: > >format DATA_OUT_TOP = >col1 col2 col3 >--- &

Displaying text formats in a text widget...

2001-06-12 Thread Brennan, Corey
I am trying to convert a script to Perl/Tk and I am having trouble. I have some formats defined example: format DATA_OUT_TOP = col1 col2 col3 --- . format DATA_OUT = @|@|@|| $text $text1 $text2 . And I am looking for a way to use