| Thread | Last Post | Replies |
|
| Is item in array | 31 Dec 2006 17:53 GMT | 4 |
Is there an easy way to determine if an item is in an array without iterating through the array and comparing each element to the item in question? Mathew
|
| [bug or restriction about msgget] I have a confusion about msgget(System V message queue) | 31 Dec 2006 14:52 GMT | 1 |
flw@Sleeper:~$ ipcs -q ------ Message Queues -------- key msqid owner perms used-bytes messages flw@Sleeper:~$ perl -e 'use IPC::SysV qw(IPC_CREAT);$m=msgget(0x12345678,IPC_CREAT|0666) || die $!'
|
| regex substitution question | 31 Dec 2006 12:09 GMT | 2 |
A script I've been working on will provide time spent on a work ticket in H:MM format. However, if the MM section is less than 10 it only shows as H:M so I need to append a 0 to it. So, for instance, if the output looks like this 9:7 I need to append the 0 to the 7 making it 9:07.
|
| What's being thrown away? | 31 Dec 2006 11:57 GMT | 3 |
In the following snippet of code I'm getting the "useless use of a private variable in a void context" error. It is at line 64 which is the closing brace for the for loop. for ($count; $count < 7; $count++) {
|
| Strings vs Arrays | 31 Dec 2006 03:58 GMT | 3 |
I now we can push (concatenate) data onto an array. I would assume that we could concatenate data on to a string as well with something like: $newstring = $oldstring . $newdata
|
| Negate a regular expression | 30 Dec 2006 22:03 GMT | 9 |
I'm trying to set up an if clause to exit if an answer given is anything but either any case combination of 'y' or 'yes'. This is what I have: exit if $ans =~ m/[^y|^yes]/i; Will that do what I want?
|
| Accessing the values of HoH | 30 Dec 2006 04:02 GMT | 3 |
In my most recent postings, I was dealing with first HoA and now HoH. In my previous example code, I ended up with an output that looked something like this: jelly -- strawberry apple grape pear
|
| Hashes of Hashes | 29 Dec 2006 17:19 GMT | 2 |
I'm working on a complex data structure with hashes of hashes and hashes of arrays and I noticed a weird behavior I was hoping someone could explain. Here's a sample: $Data{US17}{1}{GROUP} = "STRING";
|
| HoA question | 29 Dec 2006 05:50 GMT | 5 |
I'm still experimenting with the HoA from a couple of days ago. I just realized there is the possibility for having duplicate elements of the array. How do I prevent that? Thanks,
|
| HoA building | 28 Dec 2006 20:58 GMT | 16 |
I have the following simple script. I'm toying with HoA for the first time. The script is not working as expected and I know why it's not working. Each time a $HoA{$prod} is read, the $flavor is replaced with the new value.
|
| better way to skip first few lines of file read? | 28 Dec 2006 13:37 GMT | 3 |
I'm parsing a file that's 10000+ lines long. Since sometimes it can be 10x that size I'm doing line by line parsing as opposed to array slurp. The first 4 lines are gobbldygook and need to be skipped. Currently I'm doing... while (my $line = <TRACECSV>) { next unless ($ ...
|
| Strange problem with glob <> | 28 Dec 2006 12:07 GMT | 3 |
Have a look at these two different implementations. IMPL2 works somehow. The problem I am facing is that the glob <$pat> does not return any value in IMPL1 but it returns in IMPL2. Can somebody tell what could be the problem. I have also tried including the advanced glob module ...
|
| click_button gives error on a existing button | 28 Dec 2006 08:09 GMT | 2 |
I'm executing this perl and I get an error in this line_ $browser2->click_button( value => "Next 25 records"); but i dont understand why because Next 25 records button exists!! Can you help me with this please?
|
| 1, random; 2, unicode | 28 Dec 2006 01:12 GMT | 1 |
hi to all, two questions: 1) I need to extract a random item from an hash, does exist a function to do it? A module? An implementable and not-too-much-slow flowchart?
|
| Regular Expression and file editing. | 28 Dec 2006 00:19 GMT | 4 |
I will be glad if someone can give me a guide. I have a file test.conf [$ip]
|