Re: filename creating regular expression problem

2007-10-15 Thread Brad Cahoon
0]$ending\n"; } else {open FILE, "> c:\/\/output\/$ary[1]\/$ary[0]$ending\n";} # open FILE, print FILE "\\n\\n$ary[0], $ary[1]\n\<\/p\>\n\<\/html\>"; close FILE; On 15/10/2007, Brad Cahoon <[EMAIL PROTECTED]> wrote: > HI >

filename creating regular expression problem

2007-10-15 Thread Brad Cahoon
HI I keep getting errors saying: Use of uninitialized value in concatenation (.) or string at pagecreate.pl line 25. print() on closed filehandle FILE at pagecreate.pl line 29. i have a script which calls a database and there are values in $ary[0] like: bob smith joe susan / john larry jones /

Re: script woes

2007-02-08 Thread Brad Cahoon
Thanks for all the help again, I found out that the first record file was blank, so the varables could't initalise even if they wanted to. On 2/2/07, Mumia W. <[EMAIL PROTECTED]> wrote: On 02/01/2007 07:39 PM, Brad Cahoon wrote: > Hi again, > > I have lots of files ( see m

Re: script woes

2007-02-01 Thread Brad Cahoon
Hi Tom, On 2/2/07, Tom Phoenix <[EMAIL PROTECTED]> wrote: > open DATA, "$arg"; You should really check the return value from open, in case it didn't work. And what are those quote marks doing? LOL, thats me trying to see if that was the problem, it didn't make a difference this time

script woes

2007-02-01 Thread Brad Cahoon
Hi again, I have lots of files ( see my first post to this group :) ) they all have two lines simular to: Ref.: 005803/11-SY (T45)Total Amount 685.00 Lead: ARDA/DILAN/MISS Total Paid 685.00 I want to rename the files with "L

Re: while loop problem

2007-02-01 Thread Brad Cahoon
Done it, thank you all for your help. My next problem is regexp, you my be hearing from me :) Regards Brad -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

while loop problem

2007-01-31 Thread Brad Cahoon
Hi Perl Masters I have a problem with a script which is suposed to open a huge text file and take 70 lines, create a file, then take the next 70 lines create a file and so on until it has parsed the whole file. My code just doesn't work and my brain cannot figure out while{while{}} loops Help ple