Re: I need scoping help

2009-03-04 Thread sf
On Mar 4, 11:47 am, stufor...@gmail.com (Sf) wrote: > this is my problem: variable theParent never updates - it always stays > "1" > > if ($ARGV[0] eq ""){ >         print STDOUT "Enter the filename and path you wish to use:"; >         $nameoffile=

I need scoping help

2009-03-04 Thread sf
this is my problem: variable theParent never updates - it always stays "1" if ($ARGV[0] eq ""){ print STDOUT "Enter the filename and path you wish to use:"; $nameoffile=; } } $theHL = 1; $theParent = "1"; open (FILENAME, "$nameoffile") or die "cant open file\n"; open (TOFI

Re: ending a character to each line

2009-02-07 Thread sf
On Feb 5, 6:09 pm, jwkr...@shaw.ca (John W. Krahn) wrote: > stuforman wrote: > > i want to use perl to end each line with a '~'. i would really > > appreciate any syntax that would help me do this... > > $line =~ s/$/~/; > > John > -- > Those people who think they know everything are a great > anno