Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: Re: Re: Multi-Word Anagrams

by jweed (Chaplain)
on Oct 30, 2003 at 01:11 UTC ( [id://303162]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Multi-Word Anagrams
in thread Multi-Word Anagrams

well, the arry deref wasn't working so I removed the plus sign just to see if it would do anything. That code - @{ shift } - was mistaken to be @shift. Adding the explicit argument list seemed to work. This is under WinMe, perl 5.8.0. I haven't tried it on Linux yet (frankly, I can't see how this would make a difference but, *shrug* you never know). What did you test on? B/c it seems to work for 2 people and not work for 2...

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Multi-Word Anagrams
by japhy (Canon) on Oct 30, 2003 at 15:12 UTC
    I wrote it for Perl 5.005_03 (still on one machine I use), and added 'warnings'. I'll try it on my 5.8.0 on Linux... and it works just fine.

    _____________________________________________________
    Jeff[japhy]Pinyan: Perl, regex, and perl hacker, who'd like a job (NYC-area)
    s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Re: Re: Re: Re: Re: Multi-Word Anagrams
by CPS (Initiate) on Oct 30, 2003 at 16:56 UTC
    Unfortunately this isn't correct - I'm using perl 5.6.0 (Darwin) and the code doesn't work although I made the suggested change. Rather strange.
      Well, ln 99 is the line with @{ +shift }, and that's the only array ref on that line. So it HAS to be something with that, given the error message we recieved. *shrug*

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://303162]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-03-19 10:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found