RE: Delete the first char of a string with one pattern matching

2001-09-27 Thread Bob Showalter
> -Original Message- > From: John Edwards [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 27, 2001 8:25 AM > To: 'GRANATA ROBERTA'; [EMAIL PROTECTED] > Subject: RE: Delete the first char of a string with one > pattern matching > > > $string = "1test"; > > $string =~ s/.//; > >

Re: Delete the first char of a string with one pattern matching

2001-09-27 Thread Brett W. McCoy
On Thu, 27 Sep 2001, GRANATA ROBERTA wrote: > I have a string for ex. $string ='roberta'; > or $string ='1roby'; You don't need a regular expression to do that. You can use the substr function instead: $str2 = substr $string, 1; This should put everything from position

RE: File::Basename Under W98

2001-09-27 Thread Bob Showalter
> -Original Message- > From: Crowder, Rod [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 27, 2001 5:37 AM > To: Perl Beginners List (E-mail) > Subject: File::Basename Under W98 > > > I am trying to use the File::Basename module to strip off the > suffix of a > file, and use th

RE: looping in PDF::Create

2001-09-27 Thread Bob Showalter
> -Original Message- > From: Clinton [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 27, 2001 3:42 AM > To: [EMAIL PROTECTED] > Subject: looping in PDF::Create > > > Hi > I'm using PDF::Create and trying to loop thru an array hoping > to print each > element of the array. I only

Re: Delete the first char of a string with one pattern matching

2001-09-27 Thread GRANATA ROBERTA
--- Erhalten von ZBM.ZAGTA 089/32000-414 27-09-01 15.11 Thanks for the answers Regards, roberta -- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Date: Thu, 27 Sep 2001 08:46:05 -0400

Trapping Errors

2001-09-27 Thread Brett Hales
Hello, I have a perl script that inserts rows of data into a table. I wish to trap any errors on this insert and e-mail them to an address. I wish to use the standard mail tool that comes with UNIX. eg echo $trapped_error | mail [EMAIL PROTECTED] A snippit of my script is below. Can anybody

Re: Delete the first char of a string with one pattern matching

2001-09-27 Thread Jeff 'japhy' Pinyan
On Sep 27, GRANATA ROBERTA said: >With a regular expression i want to delete the first char of this string. >Can sombody help me to write it? Why do you need a regex? It's really not the tool for the task... $str =~ s/.//s; # removes the first character I'd suggest using substr(), though:

Re: please unsubscibe me from this list.

2001-09-27 Thread Craig S Monroe
Tirumal You will need to unsubscribe yourself. The addresses for this are included in each email. For example, the unsubscribe email address ([EMAIL PROTECTED]) is located in your email below. Best regards, Craig [EMAIL PROTECTED] http://www.msbwebdesign.com Pager Numeric: 1-877-895-3558 Email

RE: Delete the first char of a string with one pattern matching

2001-09-27 Thread John Edwards
$string = "1test"; $string =~ s/.//; print $string; HTH John -Original Message- From: GRANATA ROBERTA [mailto:[EMAIL PROTECTED]] Sent: 27 September 2001 14:14 To: [EMAIL PROTECTED] Subject: Delete the first char of a string with one pattern matching --- Erhalten von ZBM.ZAGTA 089/

Delete the first char of a string with one pattern matching

2001-09-27 Thread GRANATA ROBERTA
--- Erhalten von ZBM.ZAGTA 089/32000-414 27-09-01 14.14 Hi all, I have a string for ex. $string ='roberta'; or $string ='1roby'; With a regular expression i want to delete the first char of this string. Can sombody help me to write it? Thanks in advan

RE: Windows drive mapping in perl

2001-09-27 Thread Crowder, Rod
Try the Roth Consulting Win32::AdminMisc Module, there's a whole shedload of W32 goodies http://www.roth.net/perl/adminmisc Don't know if this includes a "Map drive" function, but I have used some of these with great success Rod > -Original Message- > From: Chris Garringer [mailto:[EM

File::Basename Under W98

2001-09-27 Thread Crowder, Rod
I am trying to use the File::Basename module to strip off the suffix of a file, and use the base with different suffixes for output and log files. if I Give the file name "XYZData.txt", Basename returns the full name not the "XYZData" string, leaving me with a log file "XYZData.txt.log" Any Idea

Login Screen

2001-09-27 Thread Andrew
Dear all, 1) Any body knows to go about creating login screen program for perl. 2) The good websites about this. Thanks, Andrew Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yah

Re: Cookie and redirecting.

2001-09-27 Thread Andrew
Thanks pal, you are great. I will try out. Cheers, Andrew -- Sawsan Sarandah <[EMAIL PROTECTED]> wrote: > Hi Andrew, > I've been working on a similar question recently. > Try to set the cookie and > then redirect back into the same script. When > setting the cookie, also place > a temporary val

'global' variables

2001-09-27 Thread Martijn van Exel
Hi all, I stuff all subroutines for my current perl experiment in a separate file, which i 'require' when needed. I would like to set a number of global variables in this file, which would then be imported together with the subroutines. How would I go about doing this? -- martijn van exel -

Re: Inserting into the middle of arrays

2001-09-27 Thread Paul Johnson
On Thu, Sep 27, 2001 at 08:31:33AM +0200, Andrea Holstein wrote: > It's right, but not the Perl Way, I believe. > A simple problem like inserting into the middle of arrays should be less > than 15 lines. Yes, you'd have thought Larry could have made something like that just a little bit easier.

Re: Cookie and redirecting.

2001-09-27 Thread Sawsan Sarandah
Hi Andrew, I've been working on a similar question recently. Try to set the cookie and then redirect back into the same script. When setting the cookie, also place a temporary value in the CGI environment. When the script is activated the second time around, the presence of the temporary CGI value

Re:configure Issue

2001-09-27 Thread Jorge Goncalvez
Hi, I have the following problem I wanted to change the number of blocks of a progress bar when it reaches 50. My code is: if ($_Globals{PROGRESS_VALUE} >= 50) { $pb->configure(-blocks=>100); $pb->update(); $_Globals{PROGRESS_VALUE} +=1;

Padding strings with zeros

2001-09-27 Thread Nigel Wetters
here's a way to pad to 32 bits: sub _pad32 { substr("0" x 32 . shift, -32); } which is used in Image::Size in the following manner: # _bin2int - converts binary string to decimal sub _bin2int {unpack("N",pack("B32",substr("0"x32.shift,-32)));} >>>Schoeneman, Carl 09/26/01 08:40pm >>> Is there

Re: Unix time

2001-09-27 Thread louie miranda
yeah try that it will work :) #!/usr/bin/perl $unixtime = localtime(); print $unixtime; louie miranda (axishift.ath.cx) -- Security Is A Series Of Well-Defined Steps chmod -R 0 / ; and smile :) - Original Message - From: "Daniel Falkenberg

looping in PDF::Create

2001-09-27 Thread Clinton
Hi I'm using PDF::Create and trying to loop thru an array hoping to print each element of the array. I only get the first element with this snippet. Must be doing something silly but I can't see it. my @array = ("50","100","150","200"); for (my $i=0; $i<=$#array; $i++){ $page->stringc($f2, 40, 50

please unsubscibe me from this list.

2001-09-27 Thread Tirumal Reddy
please unsubscibe me from this list. thank u tirumal -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]