Re: very starting help

2011-07-17 Thread Alan Haggai Alavi
Hello Anant, #!/usr/bin/perl is a *shebang* and is useful only in unix-like systems where it refers to the location of the interpreter. Under other systems the interpreter ignores this line as a comment. Shebang lines are useful to execute a script directly without having to specify the interpr

very starting help

2011-07-17 Thread anant mittal
hello I am using strawberry perl. Very first line i encountered to write while coding is "#! /user/bin/perl -w". It is where interpreter exists. What does this mean. Is this path is same always.perl is installed in c drive but i am writing programs in other drive. Is it still same. please help me.

Re: Deleting a line from one place and inserting it in another place

2011-07-17 Thread Shlomi Fish
Hi Melvin, On Fri, 15 Jul 2011 01:23:10 -0700 (PDT) Melvin wrote: > Hi All, > > I am a newbie to Perl. I wanted to write a below utility:- > > 1) Read a list of file names (from another file) > 2) Search for String1 (this is an entire line in the file names > obtained from the list) > 3) "gvi

Re: Regular Expression change

2011-07-17 Thread Dr.Ruud
On 2011-07-15 17:42, Wagner, David --- Sr Programmer Analyst --- CFS wrote: I have the following map: map{[$_,(/^\d/ ? 1 : 0) . /^([^;]+)/, /[^;]+;[^;]*;[^;]+;[^;]+;([^;]+);/]} I had a failure during the night because some data field(s) had a semi-colon