Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Database MySQL Perl

by shmem (Chancellor)
on Feb 27, 2012 at 09:24 UTC ( #956407=note: print w/replies, xml ) Need Help??

in reply to Database MySQL Perl

1. What value is stored in @intervals

Since @intervals denotes an array, most likely it holds a list of values - only one would just be a special case. The array holds what is returned from the search method of the object provided by resultset.

If in doubt, have a look:

{ my $c; for my $thingy (@intervals) { printf "%2d. '%s'\n",++$c, $thingy; } }
2. How is it possible to have 'Aggregation' in code and 'aggregation' table in database

It's possible with some piece of software which does the connection between 'Aggregation' and 'aggregation', probably by upper-/lowercasing the identifier.

3. What does 'undef' signify here.

It means just what undef means anywhere else: a placeholder for nothing, which is just about the same as the NULL value in a database cell.

Have a look at the documentation of DBIx::Class and DBIx::Class::ResultSet.

Replies are listed 'Best First'.
Re^2: Database MySQL Perl
by akagrawal3 (Beadle) on Feb 27, 2012 at 09:44 UTC
    Thank you very much :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://956407]
[ww]: but "don't touch 3rd rail?"\
LanX hails himself \o
[choroba]: Can't touch this... ♪ ♫
LanX ("To be or not to be" from Ernst Lubitsch)
[choroba]: holli The video is best when watched after Damian's talk (not sure if it's online already)
[ambrus]: I'm currently teaching to a co-worker about the stupid bugs and misfeatures and workarounds my current program has. The ones that I will have to eventually fix, but we have to use the programs now before I have time to fix it.
[holli]: "three little words", you mean
[ambrus]: Some of them are rather embarrassing historical misfeatures. One I partly worked around right now as I told him.
[holli]: `?

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2017-11-21 13:41 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (301 votes). Check out past polls.