Can someone else see why I am getting the following error, cause as far
as I can tell I have escaped all the ' single quotes.
ganymede# perl -i.bak1 -p -e
's/include(\'http:\/\/calarts.edu\/redcat\/nav.php\')\;/include(\'nav.php\')\;/ig'
*.php
Unmatched '.
ganymede# perl -v
This is perl, v5
ay to pass this var to
the sub.
TIA,
Karyn
Here is the whole script:
#!/usr/bin/perl
use strict;
use warnings;
# Open passwd file to compare arguments to to make sure they are valid
usernames
my $pwfile = "/etc/passwd";
open (PW, "<$pwfile") or die "Can't
At 04:30 PM 2/23/09 -0800, Karyn Stump wrote:
>I am trying to learn subroutines. I have seen refernces to using my and
>local for passing variables so I am playing with them to try to understand
>better how this all works.
>
>I have a subroutine in the script below, printsub that
At 05:09 PM 2/23/09 -0800, Jim Gibson wrote:
>On 2/23/09 Mon Feb 23, 2009 4:30 PM, "Karyn Stump"
>scribbled:
>
>> I am trying to learn subroutines. I have seen refernces to using my and
>> local for passing variables so I am playing with them to try to understa
\034\039]/,$_);
Is it possible the missed " is a unicode char or something like that ?
TIA,
--
Karyn Stump
Network Services Manager
California Institute of the Arts
ka...@calarts.edu
http://noc.calarts.edu
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional comman
ouncil,Student
Affairs,Special:/usr/studc:/bin/nologin
blackc:*:15768:15768:Black Clock,Bob Foser,Special:/usr/blackc:/bin/nologin
jiee:*:15791:15791:JiYeo Lee:/usr/jiee:/bin/nologin
mfa04:*:15794:15794:Karen Ason:/usr/mfa04:/bin/nologin
--
Karyn Williams
Network Services Manager
California I
ast, $sid, SIR Fall 2007";
Output is :
ltesting::Lisa Testing, 98, SIR Fall 2007,::/bin/sh/:
fltestjr::ftest ltest Jr., 99, SIR Fall 2007,::/bin/sh/:
I have validated that the value of $initial is correct, it equals A in the
first instance and "" in the se
At 09:35 AM 3/7/07 -0800, Tom Phoenix wrote:
>On 3/7/07, Karyn Williams <[EMAIL PROTECTED]> wrote:
>
>> I have a script where I am trying to use the conditional operator.
>> Apparently I am confused as it always evaluates false.
>
>> $initial ?
>>
At 09:58 AM 3/7/07 -0800, Karyn Williams wrote:
>At 09:35 AM 3/7/07 -0800, Tom Phoenix wrote:
>>On 3/7/07, Karyn Williams <[EMAIL PROTECTED]> wrote:
>>
>>> I have a script where I am trying to use the conditional operator.
>>> Apparently I a
At 10:04 AM 3/7/07 -0800, Tom Phoenix wrote:
>On 3/7/07, Karyn Williams <[EMAIL PROTECTED]> wrote:
>
>> if ($initial =~ "") {
>
>You probably don't want the binding operator =~ in there, but the
>string equality test eq, right? Check the perlop man
=$k/o, ) {
print "$k checked mail $count times in
maillog.$flist[4].\n"; next ;
} else {
close MAILLOG;
open MAILLOG, "/export/home/archives/maillog.$flist[5]" or die
"couldn't open maillog.$flist[5] : $!\n";
t; Thanks.
>
> Wags ;)
>David R Wagner
>Senior Programmer Analyst
>FedEx Freight
>1.408.323.4225x2224 TEL
>1.408.323.4449 FAX
>http://fedex.com/us
>
>
>> -Original Message-
>> From: Karyn Williams [mailto:[EMAIL PROTECTED]
>> Se
At 09:48 AM 3/29/07 -0700, Wagner, David --- Senior Programmer Analyst ---
WGO wrote:
>> -Original Message-
>> From: Karyn Williams [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, March 28, 2007 17:54
>> To: beginners@perl.org
>> Subject: RE: Exiting loops
&g
At 03:05 PM 3/30/07 +0100, Rob Dixon wrote:
>Karyn Williams wrote:
>>
>> I have a sh script as follows. The script worked OK until the year rolled
>> over. My (now deleted) simple sh way of figuring the month and year blew
>> up. I decided to rewrite the script in pe
alpha only version in
$lfirst.
TIA.
--
Karyn Williams
Network Services Manager
California Institute of the Arts
[EMAIL PROTECTED]
http://www.calarts.edu/network
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
: $rcount\n";
print "Kicked as dups: $acount\n";
print "Kicked as exceptions: $ecount\n";
print "Accounts created: $lcount\n";
# send via e-mail output of this script.
my $to = "To: [EMAIL PROTECTED]";
my $from = "From: [EMAIL PROTECTED]";
my $subject = &qu
per file.
I am wondering how these different methods may impact performance.
I hope I have been clear.
TIA.
--
Karyn Williams
Network Services Manager
California Institute of the Arts
[EMAIL PROTECTED]
http://www.calarts.edu/network
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
ocal/tools/tlist1") or die "$!";
print file3 join("\n",@missing);
print file3 ("\n");
close (file3);
TIA
--
Karyn Williams
Network Services Manager
California Institute of the Arts
[EMAIL PROTECTED]
http://www.calarts.edu/network
--
To unsubscribe, e-mail: [
At 04:37 PM 6/14/05 -0700, you wrote:
>Karyn Williams wrote:
>> Below is code that I found on the web that I slightly modified. I am
>> trying to create a script to remove from a file (tlist) the items in
>> another file (tnames). This works but I have multiple files (tlis
At 07:42 AM 6/15/05 -0700, you wrote:
>Karyn Williams wrote:
>> Also,
>> there are just a handful of files BUT they are ever changing, so I would
>> like to not list the statically in the code.
>>
>but this would work:
>
>chomp( my @lists = qx(ls /usr/local/
20 matches
Mail list logo