Re: missing something obvious [commentary ;O]

2001-04-25 Thread Sean O'Leary
At 02:50 PM 4/25/2001 > > Well, it's not obvious. To tell you honestly, I was initially > > shocked that split didn't complain about the string, demanding a > > pattern instead. > >"split ' '" is a pretty common idiom, though it still confuses me. >I suppose it's hardcoded? Yes. Check the bottom

Re: missing something obvious

2001-04-25 Thread Sean O'Leary
At 01:07 PM 4/25/2001, you wrote: >Such as, for example, if the limit was 4, the fourth variable would >contain the remainder of the string, rather than the fourth part of the >split. > >perldoc -f split(again) > >:-) > >-- >Paul Johnson - [EMAIL PROTECTED] Dude, you're cool. : ) I may not

Re: missing something obvious [commentary ;O]

2001-04-25 Thread Paul
--- Sean O'Leary <[EMAIL PROTECTED]> wrote: > At 10:48 AM 4/25/2001, you wrote: > > >Thanks for that Steven, > > > >I knew it was obvious > > > >Gary > > Well, it's not obvious. To tell you honestly, I was initially > shocked that split didn't complain about the string, demanding a > pattern i

Re: missing something obvious

2001-04-25 Thread Stephen P. Potter
Lightning flashed, thunder crashed and "Sean O'Leary" <[EMAIL PROTECTED]> whisp ered: | split (/./, $ARGV[0], 5) | | I don't know what the 5 is doing there ( I think it should be a 4, because | you are assigning the result of the split to 4 a list of variables, but the | compiler knows about ma

Re: missing something obvious

2001-04-25 Thread Kevin Meltzer
On Wed, Apr 25, 2001 at 07:20:22PM +0200, M.W. Koskamp ([EMAIL PROTECTED]) spew-ed forth: [snip] > > So does split(#.#, $ARGV[0]). > Perl allows to use different delimiters for regular expressions, i case it > helps to make the expressing more readable. > Say i want to split on a backslash. > Th

Re: missing something obvious

2001-04-25 Thread M.W. Koskamp
- Original Message - From: Paul Johnson <[EMAIL PROTECTED]> To: Sean O'Leary <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, April 25, 2001 7:07 PM Subject: Re: missing something obvious > On Wed, Apr 25, 2001 at 12:47:59PM -0400, Sean O'Lea

Re: missing something obvious

2001-04-25 Thread Paul Johnson
On Wed, Apr 25, 2001 at 12:47:59PM -0400, Sean O'Leary wrote: > split (".", $ARGV[0]) > > becomes > > split (/./, $ARGV[0], 5) > > I don't know what the 5 is doing there ( I think it should be a 4, because > you are assigning the result of the split to 4 a list of variables, but the > compile

Re: missing something obvious

2001-04-25 Thread Sean O'Leary
At 10:48 AM 4/25/2001, you wrote: >Thanks for that Steven, > >I knew it was obvious > >Gary Well, it's not obvious. To tell you honestly, I was initially shocked that split didn't complain about the string, demanding a pattern instead. Then I looked more at and played a bit, and found the Pe

Re: missing something obvious

2001-04-25 Thread Gary Stainburn
cc: > Subject: missing > something obvious 04/25/01 10:26 AM > > > > > > I know this is gonna be a daft one, but can anyone explain why the > following code generates the output below. > > print &q

Re: missing something obvious

2001-04-25 Thread Kevin Meltzer
Hi Gary, On Wed, Apr 25, 2001 at 03:26:31PM +0100, Gary Stainburn ([EMAIL PROTECTED]) spew-ed forth: > I know this is gonna be a daft one, but can anyone explain why the > following code generates the output below. > > print "argv=$ARGV[0]\n"; > my($dealer,$system,$dtype,$ref)=split(".",$ARGV[

Re: missing something obvious

2001-04-25 Thread Steven . Spears
t; cc: Subject: missing something obvious

missing something obvious

2001-04-25 Thread Gary Stainburn
I know this is gonna be a daft one, but can anyone explain why the following code generates the output below. print "argv=$ARGV[0]\n"; my($dealer,$system,$dtype,$ref)=split(".",$ARGV[0]); print"dealer=${dealer}\nsystem=${system}\ndtype=${dtype}\nref=${ref}\n"; I've tried 1st without the braces,